mmc: bcm2835: Deduplicate reset of driver data on remove
authorLukas Wunner <lukas@wunner.de>
Sun, 3 Feb 2019 08:27:00 +0000 (09:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +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.

Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c

index 246c8ec..7e0d3a4 100644 (file)
@@ -1455,7 +1455,6 @@ static int bcm2835_remove(struct platform_device *pdev)
                dma_release_channel(host->dma_chan_rxtx);
 
        mmc_free_host(mmc);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }