[PATCH] soc: mediatek: PMIC wrap: convert to arch_initcall
From: Henry Chen
Date: Wed Dec 23 2015 - 03:57:39 EST
Move pmic wrap initialization earlier in boot so that real devices
can use pmic without probe deferring.
Signed-off-by: Henry Chen <henryc.chen@xxxxxxxxxxxx>
---
drivers/soc/mediatek/mtk-pmic-wrap.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
index ccd5337..a8cde17 100644
--- a/drivers/soc/mediatek/mtk-pmic-wrap.c
+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c
@@ -945,7 +945,11 @@ static struct platform_driver pwrap_drv = {
.probe = pwrap_probe,
};
-module_platform_driver(pwrap_drv);
+static int __init mtk_pmic_wrap_init(void)
+{
+ return platform_driver_register(&pwrap_drv);
+}
+arch_initcall(mtk_pmic_wrap_init);
MODULE_AUTHOR("Flora Fu, MediaTek");
MODULE_DESCRIPTION("MediaTek MT8135 PMIC Wrapper Driver");
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/