mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-07 04:46:57 -05:00
mmc: sdhci-sirf: Remove redundant use of mmc_gpio_free_cd()
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user