Skip to content

Commit 9cda3e7

Browse files
l1kstorulf
authored andcommitted
mmc: bcm2835: Deduplicate reset of driver data on remove
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. Tested-by: Stefan Wahren <[email protected]> Signed-off-by: Lukas Wunner <[email protected]> Cc: Frank Pavlic <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent c58ccf2 commit 9cda3e7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mmc/host/bcm2835.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,6 @@ static int bcm2835_remove(struct platform_device *pdev)
14551455
dma_release_channel(host->dma_chan_rxtx);
14561456

14571457
mmc_free_host(mmc);
1458-
platform_set_drvdata(pdev, NULL);
14591458

14601459
return 0;
14611460
}

0 commit comments

Comments
 (0)