From patchwork Tue Apr 2 23:06:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 15831 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A088C23E2E for ; Tue, 2 Apr 2013 23:07:02 +0000 (UTC) Received: from mail-gh0-f197.google.com (mail-gh0-f197.google.com [209.85.160.197]) by fiordland.canonical.com (Postfix) with ESMTP id 1B9BAA189EA for ; Tue, 2 Apr 2013 23:07:02 +0000 (UTC) Received: by mail-gh0-f197.google.com with SMTP id r17sf1318053ghr.4 for ; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=JQ0WfVBHrWuPnlLz1X5SquJ73JdavUydW8HO6jvU5EE=; b=BARpiIpgunSvI+O/+xVDkmp8v2nTZefTEsSBeS4FEm9MvCVR6DM2vz6yRtOTTnEFov 0MQfs0SdMt0TVssKnV4J8hznKgO0K0HQNV8fU3WgU15oaWkMljaTh8/uKKfXOHu0rF5p D4ePx3RiHV33CLZOSGAwjBZBYyMBI0b3Wg24ULdomSMwDjMbeubhovenfQEXvUdMRR1h H3OyOgc5OjAtr8TYzK5+h23BcUb/R7sgaDvNQR76RzTMH67ZfgFLkkvyAOuT2xar2hEM Y25GuPDESL3CH8LGrITMRBuHVOiIQk4ghbtJ1fn1OxG9eV9cE04iTj84a2WiGCOnEcg+ tuzg== X-Received: by 10.224.18.132 with SMTP id w4mr11381783qaa.1.1364944021649; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.51 with SMTP id 19ls9298qej.38.gmail; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) X-Received: by 10.58.64.115 with SMTP id n19mr14346715ves.37.1364944021553; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) Received: from mail-vb0-x233.google.com (mail-vb0-x233.google.com [2607:f8b0:400c:c02::233]) by mx.google.com with ESMTPS id s20si2963741vcp.87.2013.04.02.16.07.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 16:07:01 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::233; Received: by mail-vb0-f51.google.com with SMTP id x19so16164vbf.24 for ; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) X-Received: by 10.52.93.20 with SMTP id cq20mr12291308vdb.38.1364944021366; Tue, 02 Apr 2013 16:07:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp146462ved; Tue, 2 Apr 2013 16:07:00 -0700 (PDT) X-Received: by 10.15.101.200 with SMTP id bp48mr53488173eeb.38.1364944020185; Tue, 02 Apr 2013 16:07:00 -0700 (PDT) Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by mx.google.com with SMTP id a9si5776284eem.91.2013.04.02.16.06.49 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Apr 2013 16:07:00 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.125 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.125; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUVtkifeli6Lw8WHMi65x7UMqTon4B9mU@postini.com; Tue, 02 Apr 2013 23:06:59 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 4999445; Tue, 2 Apr 2013 23:05:53 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id C86E096; Tue, 2 Apr 2013 16:30:20 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id BE75924C07C; Wed, 3 Apr 2013 01:06:43 +0200 (CEST) Received: from steludxu1397.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Wed, 3 Apr 2013 01:06:43 +0200 From: Ulf Hansson To: , Mike Turquette Cc: Linus Walleij , Par-Olof Hakansson , Ulf Hansson , Samuel Ortiz Subject: [PATCH 3/3] mfd: ab8500: sysctrl: Initialize driver at arch_initcall Date: Wed, 3 Apr 2013 01:06:27 +0200 Message-ID: <1364943987-1338-4-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1364943987-1338-1-git-send-email-ulf.hansson@stericsson.com> References: <1364943987-1338-1-git-send-email-ulf.hansson@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlZ0OSL39Ky4sWeyW43ETXu5ukpIX76KS+s2EcDkqb+UK9Md5aAcu5bEJdgqhA4NOSmlW+5 X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ulf Hansson The abx500-clk driver is initiated at arch_initcall level. Moreover it is relying on the ab8500-sysctrl API to be available. Therefore move ab8500-sysctrl to arch_initcall level as well. The device is already added before the abx500 clk device, thus it will be probed before as well, which is exactly what we want. Signed-off-by: Ulf Hansson Cc: Samuel Ortiz --- drivers/mfd/ab8500-sysctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index 108fd86..3b65053 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -166,7 +166,7 @@ static int __init ab8500_sysctrl_init(void) { return platform_driver_register(&ab8500_sysctrl_driver); } -subsys_initcall(ab8500_sysctrl_init); +arch_initcall(ab8500_sysctrl_init); MODULE_AUTHOR("Mattias Nilsson