Skip to content

Commit

Permalink
bcm2835-mmc: Deduplicate reset of driver data on remove
Browse files Browse the repository at this point in the history
The BCM2835 MMC host driver sets the device's driver data pointer to
NULL on ->remove() even though the driver core subsequently does the
same in __device_release_driver().  Drop the duplicate assignment.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
  • Loading branch information
l1k authored and Phil Elwell committed Mar 26, 2019
1 parent a3e27f3 commit 37b4ace
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mmc/host/bcm2835-mmc.c
Expand Up @@ -1561,7 +1561,6 @@ static int bcm2835_mmc_remove(struct platform_device *pdev)
dma_release_channel(host->dma_chan_rxtx);

mmc_free_host(host->mmc);
platform_set_drvdata(pdev, NULL);

return 0;
}
Expand Down

0 comments on commit 37b4ace

Please sign in to comment.