Skip to content

Commit a90d990

Browse files
roxellarndb
authored andcommitted
power: vexpress: cleanup: use builtin_platform_driver
Use the helper macro for builtin drivers taht don't do anything special in driver init. This removes some boilerplate code. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 73174ac commit a90d990

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/power/reset/vexpress-poweroff.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,4 @@ static struct platform_driver vexpress_reset_driver = {
146146
.suppress_bind_attrs = true,
147147
},
148148
};
149-
150-
static int __init vexpress_reset_init(void)
151-
{
152-
return platform_driver_register(&vexpress_reset_driver);
153-
}
154-
device_initcall(vexpress_reset_init);
149+
builtin_platform_driver(vexpress_reset_driver);

0 commit comments

Comments
 (0)