[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1450861049-12726-1-git-send-email-henryc.chen@mediatek.com>
Date: Wed, 23 Dec 2015 16:57:29 +0800
From: Henry Chen <henryc.chen@...iatek.com>
To: Matthias Brugger <matthias.bgg@...il.com>
CC: Sascha Hauer <s.hauer@...gutronix.de>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Henry Chen <henryc.chen@...iatek.com>
Subject: [PATCH] soc: mediatek: PMIC wrap: convert to arch_initcall
Move pmic wrap initialization earlier in boot so that real devices
can use pmic without probe deferring.
Signed-off-by: Henry Chen <henryc.chen@...iatek.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists