Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Lukas Wunner and committed by
Ulf Hansson
9cda3e7c c58ccf2b

-1
-1
drivers/mmc/host/bcm2835.c
··· 1455 1455 dma_release_channel(host->dma_chan_rxtx); 1456 1456 1457 1457 mmc_free_host(mmc); 1458 - platform_set_drvdata(pdev, NULL); 1459 1458 1460 1459 return 0; 1461 1460 }