mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
char: Switch back to struct platform_driver::remove()
After commit 0edb555a65
("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>
This commit is contained in:
parent
d8da4f1912
commit
f36ee84116
@ -213,7 +213,7 @@ static struct platform_driver oppanel_driver = {
|
||||
.of_match_table = oppanel_match,
|
||||
},
|
||||
.probe = oppanel_probe,
|
||||
.remove_new = oppanel_remove,
|
||||
.remove = oppanel_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(oppanel_driver);
|
||||
|
@ -1467,7 +1467,7 @@ static struct platform_driver sonypi_driver = {
|
||||
.pm = SONYPI_PM,
|
||||
},
|
||||
.probe = sonypi_probe,
|
||||
.remove_new = sonypi_remove,
|
||||
.remove = sonypi_remove,
|
||||
.shutdown = sonypi_shutdown,
|
||||
};
|
||||
|
||||
|
@ -738,7 +738,7 @@ MODULE_DEVICE_TABLE(of, hwicap_of_match);
|
||||
|
||||
static struct platform_driver hwicap_platform_driver = {
|
||||
.probe = hwicap_drv_probe,
|
||||
.remove_new = hwicap_drv_remove,
|
||||
.remove = hwicap_drv_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.of_match_table = hwicap_of_match,
|
||||
|
@ -74,7 +74,7 @@ static void xilly_drv_remove(struct platform_device *op)
|
||||
|
||||
static struct platform_driver xillybus_platform_driver = {
|
||||
.probe = xilly_drv_probe,
|
||||
.remove_new = xilly_drv_remove,
|
||||
.remove = xilly_drv_remove,
|
||||
.driver = {
|
||||
.name = xillyname,
|
||||
.of_match_table = xillybus_of_match,
|
||||
|
Loading…
Reference in New Issue
Block a user