projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30656e
)
mmc: sdhci-sirf: Remove redundant use of mmc_gpio_free_cd()
author
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 18 Dec 2014 14:44:31 +0000
(15:44 +0100)
committer
Ulf 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sdhci-sirf.c
b/drivers/mmc/host/sdhci-sirf.c
index 5b956b37165f8123a69fee31c1dcc147082d5d0b..f6f82ec3618d66bb6bf8a54fa7e118c71d7acb10 100644
(file)
--- a/
drivers/mmc/host/sdhci-sirf.c
+++ b/
drivers/mmc/host/sdhci-sirf.c
@@
-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;
}