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

char: 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 matched by the "CHAR and MISC DRIVERS"
maintainer's entry 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>
Acked-by: Eli Billauer <eli.billauer@gmail.com>
Link: https://lore.kernel.org/r/20241021104511.405661-2-u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
f36ee841 d8da4f19

+4 -4
+1 -1
drivers/char/powernv-op-panel.c
··· 213 213 .of_match_table = oppanel_match, 214 214 }, 215 215 .probe = oppanel_probe, 216 - .remove_new = oppanel_remove, 216 + .remove = oppanel_remove, 217 217 }; 218 218 219 219 module_platform_driver(oppanel_driver);
+1 -1
drivers/char/sonypi.c
··· 1467 1467 .pm = SONYPI_PM, 1468 1468 }, 1469 1469 .probe = sonypi_probe, 1470 - .remove_new = sonypi_remove, 1470 + .remove = sonypi_remove, 1471 1471 .shutdown = sonypi_shutdown, 1472 1472 }; 1473 1473
+1 -1
drivers/char/xilinx_hwicap/xilinx_hwicap.c
··· 738 738 739 739 static struct platform_driver hwicap_platform_driver = { 740 740 .probe = hwicap_drv_probe, 741 - .remove_new = hwicap_drv_remove, 741 + .remove = hwicap_drv_remove, 742 742 .driver = { 743 743 .name = DRIVER_NAME, 744 744 .of_match_table = hwicap_of_match,
+1 -1
drivers/char/xillybus/xillybus_of.c
··· 74 74 75 75 static struct platform_driver xillybus_platform_driver = { 76 76 .probe = xilly_drv_probe, 77 - .remove_new = xilly_drv_remove, 77 + .remove = xilly_drv_remove, 78 78 .driver = { 79 79 .name = xillyname, 80 80 .of_match_table = xillybus_of_match,