diff options
| author | Lukas Wunner <[email protected]> | 2019-02-03 09:27:00 +0100 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2019-02-25 08:40:58 +0100 |
| commit | 9cda3e7ceb50aecb686c0ce928aa7eb508490c9b (patch) | |
| tree | 2b5d39a64ab4d8d9ac04ae4dc9bb1bc65499e33c | |
| parent | c58ccf2b6de7d52994f9bb93227dfabf8077de24 (diff) | |
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]>
| -rw-r--r-- | drivers/mmc/host/bcm2835.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 246c8ec24148..7e0d3a49c06d 100644 --- a/drivers/mmc/host/bcm2835.c +++ b/drivers/mmc/host/bcm2835.c @@ -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; } |