mmc: sdhci-sirf: Remove redundant use of mmc_gpio_free_cd()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Dec 2014 14:44:31 +0000 (15:44 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:15 +0000 (09:56 +0100)
The MMC core makes use of the devm_* functions while requesting the
CD/WP GPIOs, let's rely on that.

Cc: Barry Song <baohua@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sirf.c

index 5b956b37165f8123a69fee31c1dcc147082d5d0b..f6f82ec3618d66bb6bf8a54fa7e118c71d7acb10 100644 (file)
@@ -209,9 +209,6 @@ static int sdhci_sirf_remove(struct platform_device *pdev)
 
        sdhci_pltfm_unregister(pdev);
 
-       if (gpio_is_valid(priv->gpio_cd))
-               mmc_gpio_free_cd(host->mmc);
-
        clk_disable_unprepare(priv->clk);
        return 0;
 }