From patchwork Wed Mar 6 12:04:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 2224861 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 4B3A8DF23A for ; Wed, 6 Mar 2013 11:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756562Ab3CFLoM (ORCPT ); Wed, 6 Mar 2013 06:44:12 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:26022 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756214Ab3CFLoL (ORCPT ); Wed, 6 Mar 2013 06:44:11 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ800HV1LWC10Y0@mailout3.samsung.com>; Wed, 06 Mar 2013 20:44:10 +0900 (KST) X-AuditID: cbfee61b-b7fb06d000000f28-a1-51372c0aa829 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DE.8F.03880.A0C27315; Wed, 06 Mar 2013 20:44:10 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ800ADMLUKHQ00@mmp1.samsung.com>; Wed, 06 Mar 2013 20:44:10 +0900 (KST) From: Thomas Abraham To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, linux-arm-kernel@lists.infradead.org, t.figa@samsung.com, heiko@sntech.de, linus.walleij@linaro.org, patches@linaro.org Subject: [PATCH] mmc: dwmmc: let device core setup the default pin configuration Date: Wed, 06 Mar 2013 17:34:21 +0530 Message-id: <1362571461-14570-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAJMWRmVeSWpSXmKPExsVy+t9jAV0uHfNAg0VbeS2O/O9ntJhxfh+T A5PH501yAYxRXDYpqTmZZalF+nYJXBkvjq1mLDguUHHwVxNbA+NF3i5GTg4JAROJzuermSFs MYkL99azdTFycQgJLGKU2HXmOzuE08Yk0ftgAQtIFZuAgcSjhe/YQWwRAVmJn38ugHUwC8xi kph96iFYQlggQOLg9mNgDSwCqhL7FzYygdi8Ap4Sq9acY4VYpySxofco0wRG7gWMDKsYRVML kguKk9JzjfSKE3OLS/PS9ZLzczcxgv35THoH46oGi0OMAhyMSjy8E1TMAoVYE8uKK3MPMUpw MCuJ8G6VNg8U4k1JrKxKLcqPLyrNSS0+xCjNwaIkzst46kmAkEB6YklqdmpqQWoRTJaJg1Oq gVHy3Jw0UaHCzO1mfHujbxd5Tvl6Im2lwtYEfubPXPcrb0xbfDVfStJqGucOwZuzFNZbnI6u fPd90vQFdv2JrYoFFQlf//Ow//19pMhE/t+HpyaFSa+WfW57UcJq/YH7ZXGgZei8b0pzHu7h tj17Z6fae9l2S85Wn/bXjc4PLPcydj3fcFNlma4SS3FGoqEWc1FxIgB9VOXZ4wEAAA== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed. Signed-off-by: Thomas Abraham Acked-by: Linus Walleij Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- drivers/mmc/host/dw_mmc-exynos.c | 38 -------------------------------------- 1 files changed, 0 insertions(+), 38 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 72fd0f2..467d043 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -152,43 +152,6 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host) return 0; } -static int dw_mci_exynos_setup_bus(struct dw_mci *host, - struct device_node *slot_np, u8 bus_width) -{ - int idx, gpio, ret; - - if (!slot_np) - return -EINVAL; - - /* cmd + clock + bus-width pins */ - for (idx = 0; idx < NUM_PINS(bus_width); idx++) { - gpio = of_get_gpio(slot_np, idx); - if (!gpio_is_valid(gpio)) { - dev_err(host->dev, "invalid gpio: %d\n", gpio); - return -EINVAL; - } - - ret = devm_gpio_request(host->dev, gpio, "dw-mci-bus"); - if (ret) { - dev_err(host->dev, "gpio [%d] request failed\n", gpio); - return -EBUSY; - } - } - - if (host->pdata->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) - return 0; - - gpio = of_get_named_gpio(slot_np, "samsung,cd-pinmux-gpio", 0); - if (gpio_is_valid(gpio)) { - if (devm_gpio_request(host->dev, gpio, "dw-mci-cd")) - dev_err(host->dev, "gpio [%d] request failed\n", gpio); - } else { - dev_info(host->dev, "cd gpio not available"); - } - - return 0; -} - /* Exynos5250 controller specific capabilities */ static unsigned long exynos5250_dwmmc_caps[4] = { MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | @@ -205,7 +168,6 @@ static const struct dw_mci_drv_data exynos5250_drv_data = { .prepare_command = dw_mci_exynos_prepare_command, .set_ios = dw_mci_exynos_set_ios, .parse_dt = dw_mci_exynos_parse_dt, - .setup_bus = dw_mci_exynos_setup_bus, }; static const struct of_device_id dw_mci_exynos_match[] = {