From: Axel Lin Date: Tue, 17 Sep 2013 08:00:47 +0000 (+0800) Subject: mmc: sdhci-bcm2835: Use sdhci_pltfm_unregister instead of open coded X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d0e04938275e63d4df17ee00714c3635a4ac925c;p=deliverable%2Flinux.git mmc: sdhci-bcm2835: Use sdhci_pltfm_unregister instead of open coded This avoid duplicated implementation. Signed-off-by: Axel Lin Acked-by: Stephen Warren Signed-off-by: Chris Ball --- 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: static int bcm2835_sdhci_remove(struct platform_device *pdev) { - struct sdhci_host *host = platform_get_drvdata(pdev); - int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff); - - sdhci_remove_host(host, dead); - sdhci_pltfm_free(pdev); - - return 0; + return sdhci_pltfm_unregister(pdev); } static const struct of_device_id bcm2835_sdhci_of_match[] = {