Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754439AbbLWJZY (ORCPT ); Wed, 23 Dec 2015 04:25:24 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46408 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752681AbbLWJZT (ORCPT ); Wed, 23 Dec 2015 04:25:19 -0500 X-Listener-Flag: 11101 From: Henry Chen To: Samuel Ortiz CC: Lee Jones , Matthias Brugger , Henry Chen , Sascha Hauer , Flora Fu , , , Subject: [PATCH] mfd: mt6397: convert to arch_initcall Date: Wed, 23 Dec 2015 17:25:11 +0800 Message-ID: <1450862711-22124-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: 1043 Lines: 33 Since pinctrl or regulator of mt6396 need to initialize earlier to avoid probe deferring, also change the core driver to arch_init. Signed-off-by: Henry Chen --- drivers/mfd/mt6397-core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 1749c1c..af98b4b 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -285,7 +285,11 @@ static struct platform_driver mt6397_driver = { }, }; -module_platform_driver(mt6397_driver); +static int __init mt6397_core_init(void) +{ + return platform_driver_register(&mt6397_driver); +} +arch_initcall(mt6397_core_init); MODULE_AUTHOR("Flora Fu, MediaTek"); MODULE_DESCRIPTION("Driver for MediaTek MT6397 PMIC"); -- 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/