From patchwork Fri Dec 18 04:21:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 7879901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6152C9F1AF for ; Fri, 18 Dec 2015 04:25:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BE7820453 for ; Fri, 18 Dec 2015 04:25:19 +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 9D6CE2044C for ; Fri, 18 Dec 2015 04:25:18 +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 1a9ma9-0000MY-Lh; Fri, 18 Dec 2015 04:23:53 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9ma5-0000Fs-BZ for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2015 04:23:50 +0000 Received: by mail-pf0-x234.google.com with SMTP id v86so42161919pfa.2 for ; Thu, 17 Dec 2015 20:23:28 -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=7g1tQgYjeaOSr/IqOxTYCuSuW5yzNgdzngbvS+mpfHk=; b=aQj0PbAltrcV5OmSQtKl0XlfSUDmeyR0DghI+zA7h+H2EPLAWBwyFvy2Zqthv+F5+u bGscDP9gcDDgNfL6gXj/7l6vdjCHXSBX4jW9P1IiiFnJs8OfcwutXQ7Yo9UZ3lzvmr5T tKBgfB71b2SpZ/BjdpMB0tFACAXCmdHsRLqjQ= 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=7g1tQgYjeaOSr/IqOxTYCuSuW5yzNgdzngbvS+mpfHk=; b=XSthQWbCS1OGIuiZOtEjpFN6H0iorLeQMVbFZ8TbqmozEUSYz5AGheOQjNl8YYgeCN WhfQq38E9M3uU+gg9v9SF0uzviRo6Q9E88LTwNiBfWISdpArlZNCizJA4ygh8MXnHjxw w/0ZPeCnJggCx9wJnUzidi1CiE2FD2owm/T3SaaUCAu5grDJYzMjJfv9sfic69iC/HO4 jqnfAodikfjlsBRLRmGtLDHRYjTdiDYreqEXj9Gg2uK+5VViyNiGhw3Z3F+5+uMrijDO ohj63fOeuVk97PftFA4+GHdAi4YvNJuA/dWsLkTlj+NlG6as4hYAq4y8Q3bUJnRetCnv u0nA== X-Gm-Message-State: ALoCoQnRlofIofa21uyE0+b1s/2zKzsIkyHTYswU4jy+gxImY4/eCTCrzWFB1+Cc7MaETRcZrHKiFgeFlOgts+/AfRMEO57hug== X-Received: by 10.98.72.26 with SMTP id v26mr2123278pfa.131.1450412608425; Thu, 17 Dec 2015 20:23:28 -0800 (PST) Received: from djkurtz1.tpe.corp.google.com ([172.30.210.4]) by smtp.gmail.com with ESMTPSA id xz6sm18778467pab.42.2015.12.17.20.23.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Dec 2015 20:23:27 -0800 (PST) From: Daniel Kurtz To: Subject: [PATCH] pinctrl: mediatek: convert to arch_initcall Date: Fri, 18 Dec 2015 12:21:11 +0800 Message-Id: <1450412497-25872-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-20151217_202349_530255_2EE02D35 X-CRM114-Status: GOOD ( 10.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 , Patrice Chotard , Daniel Kurtz , open list , Fabian Frederick , "open list:PIN CONTROL SUBSYSTEM" , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Yingjoe Chen , Jean-Christophe PLAGNIOL-VILLARD , "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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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. Signed-off-by: Daniel Kurtz Acked-by: Yingjoe Chen --- drivers/pinctrl/mediatek/pinctrl-mt6397.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8127.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c index f9751ae..a3780d4 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6397.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6397.c @@ -70,7 +70,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 MT6397 Pinctrl Driver"); 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");