diff options
| author | Uwe Kleine-König <[email protected]> | 2024-10-07 20:58:07 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2024-10-21 09:58:07 +0000 |
| commit | f8470006c4d6bd54dbf9a3479f85e13387bff56d (patch) | |
| tree | 2e5930417df39250ec7fedc4d6fa6f132d1c720a /drivers/mtd/nand/raw/atmel/nand-controller.c | |
| parent | mtd: cfi_cmdset_0002: remove redundant assignment to variable ret (diff) | |
| download | kernel-f8470006c4d6bd54dbf9a3479f85e13387bff56d.tar.gz kernel-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 <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'drivers/mtd/nand/raw/atmel/nand-controller.c')
| -rw-r--r-- | drivers/mtd/nand/raw/atmel/nand-controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index f9ccfd02e804..dedcca87defc 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2663,7 +2663,7 @@ static struct platform_driver atmel_nand_controller_driver = { .pm = &atmel_nand_controller_pm_ops, }, .probe = atmel_nand_controller_probe, - .remove_new = atmel_nand_controller_remove, + .remove = atmel_nand_controller_remove, }; module_platform_driver(atmel_nand_controller_driver); |
