Skip to content

Commit

Permalink
mmc: bcm2835: 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.

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>
  • Loading branch information
Lukas Wunner authored and Ulf Hansson committed Feb 25, 2019
1 parent c58ccf2 commit 9cda3e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mmc/host/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9cda3e7

Please sign in to comment.