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

watchdog: 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/watchdog/ 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.

While touching these files, make indention of the struct initializer
consistent in several files.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241010203622.839625-4-u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Uwe Kleine-König and committed by
Wim Van Sebroeck
562b0b03 43439076

+32 -32
+1 -1
drivers/watchdog/acquirewdt.c
··· 285 285 } 286 286 287 287 static struct platform_driver acquirewdt_driver = { 288 - .remove_new = acq_remove, 288 + .remove = acq_remove, 289 289 .shutdown = acq_shutdown, 290 290 .driver = { 291 291 .name = DRV_NAME,
+1 -1
drivers/watchdog/advantechwdt.c
··· 293 293 } 294 294 295 295 static struct platform_driver advwdt_driver = { 296 - .remove_new = advwdt_remove, 296 + .remove = advwdt_remove, 297 297 .shutdown = advwdt_shutdown, 298 298 .driver = { 299 299 .name = DRV_NAME,
+1 -1
drivers/watchdog/at91rm9200_wdt.c
··· 295 295 296 296 static struct platform_driver at91wdt_driver = { 297 297 .probe = at91wdt_probe, 298 - .remove_new = at91wdt_remove, 298 + .remove = at91wdt_remove, 299 299 .shutdown = at91wdt_shutdown, 300 300 .suspend = pm_ptr(at91wdt_suspend), 301 301 .resume = pm_ptr(at91wdt_resume),
+1 -1
drivers/watchdog/at91sam9_wdt.c
··· 392 392 393 393 static struct platform_driver at91wdt_driver = { 394 394 .probe = at91wdt_probe, 395 - .remove_new = at91wdt_remove, 395 + .remove = at91wdt_remove, 396 396 .driver = { 397 397 .name = "at91_wdt", 398 398 .of_match_table = of_match_ptr(at91_wdt_dt_ids),
+1 -1
drivers/watchdog/ath79_wdt.c
··· 305 305 306 306 static struct platform_driver ath79_wdt_driver = { 307 307 .probe = ath79_wdt_probe, 308 - .remove_new = ath79_wdt_remove, 308 + .remove = ath79_wdt_remove, 309 309 .shutdown = ath79_wdt_shutdown, 310 310 .driver = { 311 311 .name = DRIVER_NAME,
+1 -1
drivers/watchdog/bcm2835_wdt.c
··· 227 227 228 228 static struct platform_driver bcm2835_wdt_driver = { 229 229 .probe = bcm2835_wdt_probe, 230 - .remove_new = bcm2835_wdt_remove, 230 + .remove = bcm2835_wdt_remove, 231 231 .driver = { 232 232 .name = "bcm2835-wdt", 233 233 },
+1 -1
drivers/watchdog/bcm_kona_wdt.c
··· 328 328 .of_match_table = bcm_kona_wdt_of_match, 329 329 }, 330 330 .probe = bcm_kona_wdt_probe, 331 - .remove_new = bcm_kona_wdt_remove, 331 + .remove = bcm_kona_wdt_remove, 332 332 }; 333 333 334 334 module_platform_driver(bcm_kona_wdt_driver);
+1 -1
drivers/watchdog/cpwd.c
··· 653 653 .of_match_table = cpwd_match, 654 654 }, 655 655 .probe = cpwd_probe, 656 - .remove_new = cpwd_remove, 656 + .remove = cpwd_remove, 657 657 }; 658 658 659 659 module_platform_driver(cpwd_driver);
+1 -1
drivers/watchdog/dw_wdt.c
··· 684 684 685 685 static struct platform_driver dw_wdt_driver = { 686 686 .probe = dw_wdt_drv_probe, 687 - .remove_new = dw_wdt_drv_remove, 687 + .remove = dw_wdt_drv_remove, 688 688 .driver = { 689 689 .name = "dw_wdt", 690 690 .of_match_table = of_match_ptr(dw_wdt_of_match),
+1 -1
drivers/watchdog/gef_wdt.c
··· 305 305 .of_match_table = gef_wdt_ids, 306 306 }, 307 307 .probe = gef_wdt_probe, 308 - .remove_new = gef_wdt_remove, 308 + .remove = gef_wdt_remove, 309 309 }; 310 310 311 311 static int __init gef_wdt_init(void)
+1 -1
drivers/watchdog/geodewdt.c
··· 248 248 } 249 249 250 250 static struct platform_driver geodewdt_driver = { 251 - .remove_new = geodewdt_remove, 251 + .remove = geodewdt_remove, 252 252 .shutdown = geodewdt_shutdown, 253 253 .driver = { 254 254 .name = DRV_NAME,
+1 -1
drivers/watchdog/ib700wdt.c
··· 331 331 } 332 332 333 333 static struct platform_driver ibwdt_driver = { 334 - .remove_new = ibwdt_remove, 334 + .remove = ibwdt_remove, 335 335 .shutdown = ibwdt_shutdown, 336 336 .driver = { 337 337 .name = DRV_NAME,
+1 -1
drivers/watchdog/ie6xx_wdt.c
··· 280 280 281 281 static struct platform_driver ie6xx_wdt_driver = { 282 282 .probe = ie6xx_wdt_probe, 283 - .remove_new = ie6xx_wdt_remove, 283 + .remove = ie6xx_wdt_remove, 284 284 .driver = { 285 285 .name = DRIVER_NAME, 286 286 },
+1 -1
drivers/watchdog/lpc18xx_wdt.c
··· 281 281 .of_match_table = lpc18xx_wdt_match, 282 282 }, 283 283 .probe = lpc18xx_wdt_probe, 284 - .remove_new = lpc18xx_wdt_remove, 284 + .remove = lpc18xx_wdt_remove, 285 285 }; 286 286 module_platform_driver(lpc18xx_wdt_driver); 287 287
+1 -1
drivers/watchdog/mtx-1_wdt.c
··· 233 233 234 234 static struct platform_driver mtx1_wdt_driver = { 235 235 .probe = mtx1_wdt_probe, 236 - .remove_new = mtx1_wdt_remove, 236 + .remove = mtx1_wdt_remove, 237 237 .driver.name = "mtx1-wdt", 238 238 }; 239 239
+1 -1
drivers/watchdog/nic7018_wdt.c
··· 236 236 237 237 static struct platform_driver watchdog_driver = { 238 238 .probe = nic7018_probe, 239 - .remove_new = nic7018_remove, 239 + .remove = nic7018_remove, 240 240 .driver = { 241 241 .name = KBUILD_MODNAME, 242 242 .acpi_match_table = ACPI_PTR(nic7018_device_ids),
+1 -1
drivers/watchdog/nv_tco.c
··· 466 466 467 467 static struct platform_driver nv_tco_driver = { 468 468 .probe = nv_tco_init, 469 - .remove_new = nv_tco_remove, 469 + .remove = nv_tco_remove, 470 470 .shutdown = nv_tco_shutdown, 471 471 .driver = { 472 472 .name = TCO_MODULE_NAME,
+1 -1
drivers/watchdog/omap_wdt.c
··· 357 357 358 358 static struct platform_driver omap_wdt_driver = { 359 359 .probe = omap_wdt_probe, 360 - .remove_new = omap_wdt_remove, 360 + .remove = omap_wdt_remove, 361 361 .shutdown = omap_wdt_shutdown, 362 362 .suspend = pm_ptr(omap_wdt_suspend), 363 363 .resume = pm_ptr(omap_wdt_resume),
+1 -1
drivers/watchdog/orion_wdt.c
··· 665 665 666 666 static struct platform_driver orion_wdt_driver = { 667 667 .probe = orion_wdt_probe, 668 - .remove_new = orion_wdt_remove, 668 + .remove = orion_wdt_remove, 669 669 .shutdown = orion_wdt_shutdown, 670 670 .driver = { 671 671 .name = "orion_wdt",
+1 -1
drivers/watchdog/rc32434_wdt.c
··· 309 309 310 310 static struct platform_driver rc32434_wdt_driver = { 311 311 .probe = rc32434_wdt_probe, 312 - .remove_new = rc32434_wdt_remove, 312 + .remove = rc32434_wdt_remove, 313 313 .shutdown = rc32434_wdt_shutdown, 314 314 .driver = { 315 315 .name = "rc32434_wdt",
+1 -1
drivers/watchdog/rdc321x_wdt.c
··· 268 268 269 269 static struct platform_driver rdc321x_wdt_driver = { 270 270 .probe = rdc321x_wdt_probe, 271 - .remove_new = rdc321x_wdt_remove, 271 + .remove = rdc321x_wdt_remove, 272 272 .driver = { 273 273 .name = "rdc321x-wdt", 274 274 },
+1 -1
drivers/watchdog/renesas_wdt.c
··· 337 337 .pm = &rwdt_pm_ops, 338 338 }, 339 339 .probe = rwdt_probe, 340 - .remove_new = rwdt_remove, 340 + .remove = rwdt_remove, 341 341 }; 342 342 module_platform_driver(rwdt_driver); 343 343
+1 -1
drivers/watchdog/riowd.c
··· 238 238 .of_match_table = riowd_match, 239 239 }, 240 240 .probe = riowd_probe, 241 - .remove_new = riowd_remove, 241 + .remove = riowd_remove, 242 242 }; 243 243 244 244 module_platform_driver(riowd_driver);
+1 -1
drivers/watchdog/rti_wdt.c
··· 378 378 .of_match_table = rti_wdt_of_match, 379 379 }, 380 380 .probe = rti_wdt_probe, 381 - .remove_new = rti_wdt_remove, 381 + .remove = rti_wdt_remove, 382 382 }; 383 383 384 384 module_platform_driver(rti_wdt_driver);
+2 -2
drivers/watchdog/sa1100_wdt.c
··· 236 236 237 237 static struct platform_driver sa1100dog_driver = { 238 238 .driver.name = "sa1100_wdt", 239 - .probe = sa1100dog_probe, 240 - .remove_new = sa1100dog_remove, 239 + .probe = sa1100dog_probe, 240 + .remove = sa1100dog_remove, 241 241 }; 242 242 module_platform_driver(sa1100dog_driver); 243 243
+1 -1
drivers/watchdog/sch311x_wdt.c
··· 445 445 446 446 static struct platform_driver sch311x_wdt_driver = { 447 447 .probe = sch311x_wdt_probe, 448 - .remove_new = sch311x_wdt_remove, 448 + .remove = sch311x_wdt_remove, 449 449 .shutdown = sch311x_wdt_shutdown, 450 450 .driver = { 451 451 .name = DRV_NAME,
+1 -1
drivers/watchdog/shwdt.c
··· 297 297 }, 298 298 299 299 .probe = sh_wdt_probe, 300 - .remove_new = sh_wdt_remove, 300 + .remove = sh_wdt_remove, 301 301 .shutdown = sh_wdt_shutdown, 302 302 }; 303 303
+1 -1
drivers/watchdog/st_lpc_wdt.c
··· 286 286 .of_match_table = st_wdog_match, 287 287 }, 288 288 .probe = st_wdog_probe, 289 - .remove_new = st_wdog_remove, 289 + .remove = st_wdog_remove, 290 290 }; 291 291 module_platform_driver(st_wdog_driver); 292 292
+1 -1
drivers/watchdog/starfive-wdt.c
··· 597 597 598 598 static struct platform_driver starfive_wdt_driver = { 599 599 .probe = starfive_wdt_probe, 600 - .remove_new = starfive_wdt_remove, 600 + .remove = starfive_wdt_remove, 601 601 .shutdown = starfive_wdt_shutdown, 602 602 .driver = { 603 603 .name = "starfive-wdt",
+1 -1
drivers/watchdog/stmp3xxx_rtc_wdt.c
··· 143 143 .pm = &stmp3xxx_wdt_pm_ops, 144 144 }, 145 145 .probe = stmp3xxx_wdt_probe, 146 - .remove_new = stmp3xxx_wdt_remove, 146 + .remove = stmp3xxx_wdt_remove, 147 147 }; 148 148 module_platform_driver(stmp3xxx_wdt_driver); 149 149
+1 -1
drivers/watchdog/txx9wdt.c
··· 159 159 160 160 static struct platform_driver txx9wdt_driver = { 161 161 .probe = txx9wdt_probe, 162 - .remove_new = txx9wdt_remove, 162 + .remove = txx9wdt_remove, 163 163 .shutdown = txx9wdt_shutdown, 164 164 .driver = { 165 165 .name = "txx9wdt",