diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-09-17 04:00:47 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-09-25 22:05:57 -0400 |
commit | d0e04938275e63d4df17ee00714c3635a4ac925c (patch) | |
tree | 9fcf3cb59c124aa274772be828e69a9bd381dca6 | |
parent | ff1acfd0def7487d0554048bc613db4e7c3f3211 (diff) |
mmc: sdhci-bcm2835: Use sdhci_pltfm_unregister instead of open coded
This avoid duplicated implementation.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-bcm2835.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mmc/host/sdhci-bcm2835.c b/drivers/mmc/host/sdhci-bcm2835.c index 36fa2df04660..f6d8d67c545f 100644 --- a/drivers/mmc/host/sdhci-bcm2835.c +++ b/drivers/mmc/host/sdhci-bcm2835.c | |||
@@ -178,13 +178,7 @@ err: | |||
178 | 178 | ||
179 | static int bcm2835_sdhci_remove(struct platform_device *pdev) | 179 | static int bcm2835_sdhci_remove(struct platform_device *pdev) |
180 | { | 180 | { |
181 | struct sdhci_host *host = platform_get_drvdata(pdev); | 181 | return sdhci_pltfm_unregister(pdev); |
182 | int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff); | ||
183 | |||
184 | sdhci_remove_host(host, dead); | ||
185 | sdhci_pltfm_free(pdev); | ||
186 | |||
187 | return 0; | ||
188 | } | 182 | } |
189 | 183 | ||
190 | static const struct of_device_id bcm2835_sdhci_of_match[] = { | 184 | static const struct of_device_id bcm2835_sdhci_of_match[] = { |