Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933763AbbLWI5g (ORCPT ); Wed, 23 Dec 2015 03:57:36 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:38625 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932716AbbLWI5e (ORCPT ); Wed, 23 Dec 2015 03:57:34 -0500 X-Listener-Flag: 11101 From: Henry Chen To: Matthias Brugger CC: Sascha Hauer , , , , Henry Chen Subject: [PATCH] soc: mediatek: PMIC wrap: convert to arch_initcall Date: Wed, 23 Dec 2015 16:57:29 +0800 Message-ID: <1450861049-12726-1-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 33 Move pmic wrap initialization earlier in boot so that real devices can use pmic without probe deferring. Signed-off-by: Henry Chen --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/