bcm2835-mmc: Deduplicate reset of driver data on remove
authorLukas Wunner <lukas@wunner.de>
Sat, 19 Jan 2019 07:42:40 +0000 (08:42 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:24 +0000 (00:08 +0100)
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>
drivers/mmc/host/bcm2835-mmc.c

index 46ea11d..68daa59 100644 (file)
@@ -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;
 }