]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
power: reset: brcmstb: Use normal driver register function
authorAndrew Davis <afd@ti.com>
Mon, 10 Jun 2024 14:28:32 +0000 (09:28 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 17:34:01 +0000 (19:34 +0200)
The platform_driver_probe() helper is useful when the probe function
is in the _init section, that is not the case here. Use the normal
platform_driver_register() function.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20240610142836.168603-1-afd@ti.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/brcmstb-reboot.c

index 0f2944dc935516279af248f7331781440d78527a..797f0079bb590ce156284ffb26c6169acdfed15e 100644 (file)
@@ -140,7 +140,6 @@ static struct platform_driver brcmstb_reboot_driver = {
 
 static int __init brcmstb_reboot_init(void)
 {
-       return platform_driver_probe(&brcmstb_reboot_driver,
-                                       brcmstb_reboot_probe);
+       return platform_driver_register(&brcmstb_reboot_driver);
 }
 subsys_initcall(brcmstb_reboot_init);