Skip to content

Commit

Permalink
mmc: sdhci-bcm2835: Use sdhci_pltfm_unregister instead of open coded
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Chris Ball committed Sep 26, 2013
1 parent ff1acfd commit d0e0493
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/mmc/host/sdhci-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,7 @@ static int bcm2835_sdhci_probe(struct platform_device *pdev)

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[] = {
Expand Down

0 comments on commit d0e0493

Please sign in to comment.