projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73174ac
)
power: vexpress: cleanup: use builtin_platform_driver
author
Anders Roxell
<anders.roxell@linaro.org>
Wed, 27 May 2020 11:26:05 +0000
(13:26 +0200)
committer
Arnd Bergmann
<arnd@arndb.de>
Thu, 28 May 2020 10:31:30 +0000
(12:31 +0200)
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/20200527112608.3886105-3-anders.roxell@linaro.org
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/power/reset/vexpress-poweroff.c
patch
|
blob
|
history
diff --git
a/drivers/power/reset/vexpress-poweroff.c
b/drivers/power/reset/vexpress-poweroff.c
index 0bf9ab8653ae99af63d1471ace760f751aca7b56..1fdbcbd95fc2ddae839d2cc695dd4b83997f6267 100644
(file)
--- a/
drivers/power/reset/vexpress-poweroff.c
+++ b/
drivers/power/reset/vexpress-poweroff.c
@@
-146,9
+146,4
@@
static struct platform_driver vexpress_reset_driver = {
.suppress_bind_attrs = true,
},
};
-
-static int __init vexpress_reset_init(void)
-{
- return platform_driver_register(&vexpress_reset_driver);
-}
-device_initcall(vexpress_reset_init);
+builtin_platform_driver(vexpress_reset_driver);