powerpc: 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 pwm drivers 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: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240909130902.851274-2-u.kleine-koenig@baylibre.com
This commit is contained in:
parent
b0e2b828df
commit
01d34cc936
@ -504,7 +504,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_lpbfifo_match);
|
||||
|
||||
static struct platform_driver mpc512x_lpbfifo_driver = {
|
||||
.probe = mpc512x_lpbfifo_probe,
|
||||
.remove_new = mpc512x_lpbfifo_remove,
|
||||
.remove = mpc512x_lpbfifo_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = mpc512x_lpbfifo_match,
|
||||
|
@ -143,7 +143,7 @@ static struct platform_driver gpio_halt_driver = {
|
||||
.of_match_table = gpio_halt_match,
|
||||
},
|
||||
.probe = gpio_halt_probe,
|
||||
.remove_new = gpio_halt_remove,
|
||||
.remove = gpio_halt_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(gpio_halt_driver);
|
||||
|
@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, gpio_mdio_match);
|
||||
static struct platform_driver gpio_mdio_driver =
|
||||
{
|
||||
.probe = gpio_mdio_probe,
|
||||
.remove_new = gpio_mdio_remove,
|
||||
.remove = gpio_mdio_remove,
|
||||
.driver = {
|
||||
.name = "gpio-mdio-bitbang",
|
||||
.of_match_table = gpio_mdio_match,
|
||||
|
@ -443,7 +443,7 @@ static struct platform_driver opal_prd_driver = {
|
||||
.of_match_table = opal_prd_match,
|
||||
},
|
||||
.probe = opal_prd_probe,
|
||||
.remove_new = opal_prd_remove,
|
||||
.remove = opal_prd_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(opal_prd_driver);
|
||||
|
@ -1509,7 +1509,7 @@ static const struct of_device_id papr_scm_match[] = {
|
||||
|
||||
static struct platform_driver papr_scm_driver = {
|
||||
.probe = papr_scm_probe,
|
||||
.remove_new = papr_scm_remove,
|
||||
.remove = papr_scm_remove,
|
||||
.driver = {
|
||||
.name = "papr_scm",
|
||||
.of_match_table = papr_scm_match,
|
||||
|
@ -603,7 +603,7 @@ static struct platform_driver fsl_of_msi_driver = {
|
||||
.of_match_table = fsl_of_msi_ids,
|
||||
},
|
||||
.probe = fsl_of_msi_probe,
|
||||
.remove_new = fsl_of_msi_remove,
|
||||
.remove = fsl_of_msi_remove,
|
||||
};
|
||||
|
||||
static __init int fsl_of_msi_init(void)
|
||||
|
@ -193,7 +193,7 @@ static void pmi_of_remove(struct platform_device *dev)
|
||||
|
||||
static struct platform_driver pmi_of_platform_driver = {
|
||||
.probe = pmi_of_probe,
|
||||
.remove_new = pmi_of_remove,
|
||||
.remove = pmi_of_remove,
|
||||
.driver = {
|
||||
.name = "pmi",
|
||||
.of_match_table = pmi_match,
|
||||
|
Loading…
Reference in New Issue
Block a user