summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-23 23:04:21 +0800
committerScott Wood <oss@buserror.net>2016-12-04 19:52:45 -0600
commitc9492b4bea2630dacd18e16f8e8b0dcf91a6edcf (patch)
tree408a44311d86be1b9d15361a123c9ff8f3ce8c18 /drivers
parent16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89 (diff)
soc/fsl/qe: use builtin_platform_driver
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/fsl/qe/qe.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c
index 2707a827261b..ade168f5328e 100644
--- 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) */