Skip to content

Commit 0174d12

Browse files
glneosre
authored andcommitted
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 <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Acked-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 292fe42 commit 0174d12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/power/reset/brcmstb-reboot.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ static struct platform_driver brcmstb_reboot_driver = {
140140

141141
static int __init brcmstb_reboot_init(void)
142142
{
143-
return platform_driver_probe(&brcmstb_reboot_driver,
144-
brcmstb_reboot_probe);
143+
return platform_driver_register(&brcmstb_reboot_driver);
145144
}
146145
subsys_initcall(brcmstb_reboot_init);

0 commit comments

Comments
 (0)