* [PATCH] soc: mediatek: Init MT8173 scpsys driver earlier
@ 2015-10-26 9:46 James Liao
0 siblings, 0 replies; only message in thread
From: James Liao @ 2015-10-26 9:46 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Matthias Brugger, srv_heupstream, Kevin Hilman, Daniel Kurtz,
Sascha Hauer, devicetree, linux-kernel, linux-mediatek,
James Liao
Some power domain comsumers may init before module_init.
So the power domain provider (scpsys) need to be initialized
earlier too.
This patch modify scpsys driver init level from module_init to
subsys_initcall.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
---
This patch is based on v4.3-rc7.
drivers/soc/mediatek/mtk-scpsys.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c
index 164a7d8..7d5d55d 100644
--- a/drivers/soc/mediatek/mtk-scpsys.c
+++ b/drivers/soc/mediatek/mtk-scpsys.c
@@ -485,4 +485,15 @@ static struct platform_driver scpsys_drv = {
},
};
-module_platform_driver_probe(scpsys_drv, scpsys_probe);
+static int __init scpsys_drv_init(void)
+{
+ return platform_driver_probe(&scpsys_drv, scpsys_probe);
+}
+
+static void __exit scpsys_drv_exit(void)
+{
+ platform_driver_unregister(&scpsys_drv);
+}
+
+subsys_initcall(scpsys_drv_init);
+module_exit(scpsys_drv_exit);
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-26 9:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 9:46 [PATCH] soc: mediatek: Init MT8173 scpsys driver earlier James Liao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).