power: reset: brcmstb: Use normal driver register function
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>
This commit is contained in:
committed by
Sebastian Reichel
parent
292fe42c34
commit
0174d12f9b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user