diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-03 23:07:56 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-06-09 15:06:26 +0200 |
commit | 43adab7fd4131ccdeda7abb9bf66afcfa0915a82 (patch) | |
tree | 5d8a36e5469693c89d13b10c71d0e860b76402a7 /drivers/mtd | |
parent | mtd: rawnand: meson: Don't skip cleanup after mtd_device_unregister() failed (diff) | |
download | linux-43adab7fd4131ccdeda7abb9bf66afcfa0915a82.tar.xz linux-43adab7fd4131ccdeda7abb9bf66afcfa0915a82.zip |
mtd: rawnand: meson: Drop cleaning platform data in .remove()
The driver core cares for unsetting platform data (see
device_unbind_cleanup()) on remove.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220603210758.148493-13-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/raw/meson_nand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c index 748e115b0bb7..4e6d1a6a19c7 100644 --- a/drivers/mtd/nand/raw/meson_nand.c +++ b/drivers/mtd/nand/raw/meson_nand.c @@ -1445,8 +1445,6 @@ static int meson_nfc_remove(struct platform_device *pdev) meson_nfc_disable_clk(nfc); - platform_set_drvdata(pdev, NULL); - return 0; } |