aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/gpio.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-10-07 22:58:07 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2024-10-21 11:58:07 +0200
commitf8470006c4d6bd54dbf9a3479f85e13387bff56d (patch)
tree2e5930417df39250ec7fedc4d6fa6f132d1c720a /drivers/mtd/nand/raw/gpio.c
parentmtd: cfi_cmdset_0002: remove redundant assignment to variable ret (diff)
downloadlinux-f8470006c4d6bd54dbf9a3479f85e13387bff56d.tar.gz
linux-f8470006c4d6bd54dbf9a3479f85e13387bff56d.zip
mtd: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/mtd to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20241007205803.444994-10-u.kleine-koenig@baylibre.com
Diffstat (limited to 'drivers/mtd/nand/raw/gpio.c')
-rw-r--r--drivers/mtd/nand/raw/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/gpio.c b/drivers/mtd/nand/raw/gpio.c
index d6cc2cb65214..69e5e43532a4 100644
--- a/drivers/mtd/nand/raw/gpio.c
+++ b/drivers/mtd/nand/raw/gpio.c
@@ -392,7 +392,7 @@ out_ce:
static struct platform_driver gpio_nand_driver = {
.probe = gpio_nand_probe,
- .remove_new = gpio_nand_remove,
+ .remove = gpio_nand_remove,
.driver = {
.name = "gpio-nand",
.of_match_table = of_match_ptr(gpio_nand_id_table),