projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c6cb4
)
soc/fsl/qe: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 15:04:21 +0000
(23:04 +0800)
committer
Scott Wood
<oss@buserror.net>
Mon, 5 Dec 2016 01:52:45 +0000
(19:52 -0600)
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qe/qe.c
patch
|
blob
|
history
diff --git
a/drivers/soc/fsl/qe/qe.c
b/drivers/soc/fsl/qe/qe.c
index
2707a82
..
ade168f
100644
(file)
--- a/
drivers/soc/fsl/qe/qe.c
+++ b/
drivers/soc/fsl/qe/qe.c
@@
-717,9
+717,5
@@
static struct platform_driver qe_driver = {
.resume = qe_resume,
};
-static int __init qe_drv_init(void)
-{
- return platform_driver_register(&qe_driver);
-}
-device_initcall(qe_drv_init);
+builtin_platform_driver(qe_driver);
#endif /* defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx) */