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: 7904691 Return-Path: X-Original-To: patchwork-linux-mediatek@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 CCD4EBEEE5 for ; Tue, 22 Dec 2015 13:48:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A10E20527 for ; Tue, 22 Dec 2015 13:48:07 +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 3559420494 for ; Tue, 22 Dec 2015 13:48:06 +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 1aBNIL-0002LS-NH; Tue, 22 Dec 2015 13:48:05 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBNI9-0002DT-D9 for linux-mediatek@lists.infradead.org; Tue, 22 Dec 2015 13:47:55 +0000 Received: by mail-pf0-x22f.google.com with SMTP id u7so60378356pfb.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=CIqO45KTeoU47N+6LXUG9pkh+nSvLw3twLD2VbU8ct4CWaaCcGKuQbCHNg/d+ZkSW+ AizZBlUyv5srcS18K4+REBEh/jWcFYrM/ho6bT4IZzuDOi0/73xbNeuDFJEpcyo7f+So lygZ1HvLHiVglGgO2frG63q+QDyeeYcndOu1bb9av2Xd+7uPMHVxTGRzuIc0Je84QwMb HYuW9EA0PZCmJyh4u06qWHrC5j07Q845y0qDvn4ZL6rw9Fk/FV+jyrSZwBtNnzKsRE9E ADb5gydOI5uvR5wKycrEt+gVp2SNQMN22v2fVzg4BGVnRlx5/v8h7HgMEENOa3PX35CU HgYA== X-Gm-Message-State: ALoCoQnHyqsNgDY6On3ve0+yaowQHvslrnxli4E8EzIuDFrt57A9PBDKjqF9OjdMgqYlMLjPEektJ01hocZLyhYVI370RlCziw== 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_586986_085A823A X-CRM114-Status: GOOD ( 10.17 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-mediatek@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 , 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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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");