Skip to content

Commit 8db7fdf

Browse files
ukleinekUwe Kleine-König
authored andcommitted
pwm: Switch back to struct platform_driver::remove()
After commit 0edb555 ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent edeedfa commit 8db7fdf

14 files changed

+14
-14
lines changed

drivers/pwm/pwm-atmel-hlcdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static struct platform_driver atmel_hlcdc_pwm_driver = {
299299
.pm = pm_ptr(&atmel_hlcdc_pwm_pm_ops),
300300
},
301301
.probe = atmel_hlcdc_pwm_probe,
302-
.remove_new = atmel_hlcdc_pwm_remove,
302+
.remove = atmel_hlcdc_pwm_remove,
303303
};
304304
module_platform_driver(atmel_hlcdc_pwm_driver);
305305

drivers/pwm/pwm-atmel-tcb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static struct platform_driver atmel_tcb_pwm_driver = {
527527
.pm = pm_ptr(&atmel_tcb_pwm_pm_ops),
528528
},
529529
.probe = atmel_tcb_pwm_probe,
530-
.remove_new = atmel_tcb_pwm_remove,
530+
.remove = atmel_tcb_pwm_remove,
531531
};
532532
module_platform_driver(atmel_tcb_pwm_driver);
533533

drivers/pwm/pwm-clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static struct platform_driver pwm_clk_driver = {
130130
.of_match_table = pwm_clk_dt_ids,
131131
},
132132
.probe = pwm_clk_probe,
133-
.remove_new = pwm_clk_remove,
133+
.remove = pwm_clk_remove,
134134
};
135135
module_platform_driver(pwm_clk_driver);
136136

drivers/pwm/pwm-hibvt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static struct platform_driver hibvt_pwm_driver = {
276276
.of_match_table = hibvt_pwm_of_match,
277277
},
278278
.probe = hibvt_pwm_probe,
279-
.remove_new = hibvt_pwm_remove,
279+
.remove = hibvt_pwm_remove,
280280
};
281281
module_platform_driver(hibvt_pwm_driver);
282282

drivers/pwm/pwm-img.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static struct platform_driver img_pwm_driver = {
416416
.of_match_table = img_pwm_of_match,
417417
},
418418
.probe = img_pwm_probe,
419-
.remove_new = img_pwm_remove,
419+
.remove = img_pwm_remove,
420420
};
421421
module_platform_driver(img_pwm_driver);
422422

drivers/pwm/pwm-lpc18xx-sct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static struct platform_driver lpc18xx_pwm_driver = {
446446
.of_match_table = lpc18xx_pwm_of_match,
447447
},
448448
.probe = lpc18xx_pwm_probe,
449-
.remove_new = lpc18xx_pwm_remove,
449+
.remove = lpc18xx_pwm_remove,
450450
};
451451
module_platform_driver(lpc18xx_pwm_driver);
452452

drivers/pwm/pwm-omap-dmtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static struct platform_driver pwm_omap_dmtimer_driver = {
455455
.of_match_table = pwm_omap_dmtimer_of_match,
456456
},
457457
.probe = pwm_omap_dmtimer_probe,
458-
.remove_new = pwm_omap_dmtimer_remove,
458+
.remove = pwm_omap_dmtimer_remove,
459459
};
460460
module_platform_driver(pwm_omap_dmtimer_driver);
461461

drivers/pwm/pwm-rcar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(of, rcar_pwm_of_table);
253253

254254
static struct platform_driver rcar_pwm_driver = {
255255
.probe = rcar_pwm_probe,
256-
.remove_new = rcar_pwm_remove,
256+
.remove = rcar_pwm_remove,
257257
.driver = {
258258
.name = "pwm-rcar",
259259
.of_match_table = rcar_pwm_of_table,

drivers/pwm/pwm-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static struct platform_driver rockchip_pwm_driver = {
386386
.of_match_table = rockchip_pwm_dt_ids,
387387
},
388388
.probe = rockchip_pwm_probe,
389-
.remove_new = rockchip_pwm_remove,
389+
.remove = rockchip_pwm_remove,
390390
};
391391
module_platform_driver(rockchip_pwm_driver);
392392

drivers/pwm/pwm-sifive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ MODULE_DEVICE_TABLE(of, pwm_sifive_of_match);
336336

337337
static struct platform_driver pwm_sifive_driver = {
338338
.probe = pwm_sifive_probe,
339-
.remove_new = pwm_sifive_remove,
339+
.remove = pwm_sifive_remove,
340340
.driver = {
341341
.name = "pwm-sifive",
342342
.of_match_table = pwm_sifive_of_match,

0 commit comments

Comments
 (0)