From patchwork Tue Dec 22 13:46:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 7904711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E8709BEEE5 for ; Tue, 22 Dec 2015 13:49:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 186D920519 for ; Tue, 22 Dec 2015 13:49:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C9D920494 for ; Tue, 22 Dec 2015 13:49:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBNID-0002JP-Iy; Tue, 22 Dec 2015 13:47:57 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBNI9-0002DS-D8 for linux-arm-kernel@lists.infradead.org; Tue, 22 Dec 2015 13:47:54 +0000 Received: by mail-pf0-x22e.google.com with SMTP id u7so60378354pfb.1 for ; Tue, 22 Dec 2015 05:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=hyRwio/ZR4P0NdAhMAHJYktvZx30nb3hB5i93DpR63Y=; b=ZTNJlTN9TzRQ9ArEieCN6OmiQt5lvUqLVSuANaLyfTPYmVmH9uHuW9WN1nFRclKBdi q6BvKNCWKbkvYBvxnFi0lg01gN3OkRg5k8ZlTSBpf+gZlpwlbGMLZ4MIexpN2JW7YrHC xM5WtTs15NswwU0RlAjl72mfMqBhNgMIsMZsw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hyRwio/ZR4P0NdAhMAHJYktvZx30nb3hB5i93DpR63Y=; b=UUA2mXuA14h6PXcadwo51fTHJbWL1/BOqi1jDnQ38b0T7FVT5Ks7vLz1iXoZ3hFYcF x6vl0cSUmHusEHtMuGYMQ8o06qbsDS7/Og3d7X84IRmPsTcX2cbtAeVHv+YEAHrUICOh bH8FbUhipw7heQeIiZaLRhI2V1D201gabmlfUtO8aoHM2+yrXH/UyZRRlu/aX4T8SxpV txLgfZ0lnAkWrvzupVQ+fo2d3u8zcb/8nuqgzgZHFVWsgPoFeNvhmoVz68pT3a8j+y5K rGUjhTnquEL/NIpJ2ODWXwxsOYam2FwlZfsZStA9JibEvtgHtNAGUjHyUU0/xUv3QUAE PGWw== X-Gm-Message-State: ALoCoQlehbyNgjiJ9Eu5fZ2D6B+dbAXceCL5siq/YOPS2YR3JqmlE4CkdooHpLWYEYCfsFFAB5k3jL02LSbgX3Er5osbEXlmVA== X-Received: by 10.98.71.18 with SMTP id u18mr35151493pfa.107.1450792051808; Tue, 22 Dec 2015 05:47:31 -0800 (PST) Received: from djkurtz1.tpe.corp.google.com ([172.30.210.4]) by smtp.gmail.com with ESMTPSA id dg12sm5286721pac.47.2015.12.22.05.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Dec 2015 05:47:31 -0800 (PST) From: Daniel Kurtz To: Subject: [PATCH] pinctrl: mediatek: convert to arch_initcall Date: Tue, 22 Dec 2015 21:46:37 +0800 Message-Id: <1450792017-7120-1-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151222_054753_605349_277C936D X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Maoguang Meng , Axel Lin , Hongzhou Yang , Linus Walleij , open list , Daniel Kurtz , Fabian Frederick , "open list:PIN CONTROL SUBSYSTEM" , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Yingjoe Chen , "moderated list:ARM/Mediatek SoC support" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move pinctrl initialization earlier in boot so that real devices can find their pctldev without probe deferring. Note: We don't change mt6397 probe order in this patch, since MT6397 is mfd PMIC, which depends on pwrap on main AP to work. Since pmic-wrap itself is module_platform_driver, we keep it as module_init. A later patch will convert both pmic-wrap, and all functions of the MT6397 mfd to arch_initcall. Signed-off-by: Daniel Kurtz --- drivers/pinctrl/mediatek/pinctrl-mt8127.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8127.c b/drivers/pinctrl/mediatek/pinctrl-mt8127.c index b317b0b..98e0beb 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8127.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8127.c @@ -351,7 +351,7 @@ static int __init mtk_pinctrl_init(void) return platform_driver_register(&mtk_pinctrl_driver); } -module_init(mtk_pinctrl_init); +arch_initcall(mtk_pinctrl_init); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("MediaTek MT8127 Pinctrl Driver"); diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c index 404f117..1c153b8 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c @@ -366,7 +366,7 @@ static int __init mtk_pinctrl_init(void) return platform_driver_register(&mtk_pinctrl_driver); } -module_init(mtk_pinctrl_init); +arch_initcall(mtk_pinctrl_init); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("MediaTek Pinctrl Driver"); diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c index ad27184..a62514e 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c @@ -394,7 +394,7 @@ static int __init mtk_pinctrl_init(void) return platform_driver_register(&mtk_pinctrl_driver); } -module_init(mtk_pinctrl_init); +arch_initcall(mtk_pinctrl_init); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("MediaTek Pinctrl Driver");