From patchwork Wed Jan 23 08:25:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 14227 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 D89F823E1A for ; Wed, 23 Jan 2013 08:26:07 +0000 (UTC) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by fiordland.canonical.com (Postfix) with ESMTP id 93303A18D3B for ; Wed, 23 Jan 2013 08:26:07 +0000 (UTC) Received: by mail-vb0-f43.google.com with SMTP id fr13so1740733vbb.16 for ; Wed, 23 Jan 2013 00:26:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Qqxtz8+XE+xbRrYn8MIXTAhQR2Dv9joVQagGPaNkQrI=; b=iqLl1YGvkfxf4INDVlj7tCoeGhdUrxdsz+eMia7BFN/usR8OGix1k2OYG1gW/gGFoC qijQysC4is6l1iLSjxrgdT8b5vf3klWTXvaObI//1WVydrnudnURErKejSYRQU1LEW8S qc+XzzSQhjzeIf1RPQa1VEo0vJTrBVsVkqS0UrDuf6gilb3YGj+ioEB9TW1HXtmJkBOn HiXOpCS9WQfHBMUAX45jhwk7yhHls+ptW/LCPgFsGvbNFhRO+T7OF8HlNQ+kTk+AWxJN K5VpsX+fOMn850wKywJWlJcVHzrDX0UL2b2kx9371JQ2wQ4Qc3nDnlqbG8CPP78OJ6r9 WmAQ== X-Received: by 10.52.70.205 with SMTP id o13mr375665vdu.75.1358929567077; Wed, 23 Jan 2013 00:26:07 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp292065veb; Wed, 23 Jan 2013 00:26:06 -0800 (PST) X-Received: by 10.68.243.105 with SMTP id wx9mr1366701pbc.74.1358929566224; Wed, 23 Jan 2013 00:26:06 -0800 (PST) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id px7si19692521pbb.290.2013.01.23.00.26.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 00:26:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) client-ip=209.85.220.49; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) smtp.mail=haojian.zhuang@linaro.org Received: by mail-pa0-f49.google.com with SMTP id bi1so4598894pad.8 for ; Wed, 23 Jan 2013 00:26:05 -0800 (PST) X-Received: by 10.68.234.229 with SMTP id uh5mr1226775pbc.123.1358929565842; Wed, 23 Jan 2013 00:26:05 -0800 (PST) Received: from localhost.localdomain ([98.126.173.75]) by mx.google.com with ESMTPS id qf7sm12392126pbb.49.2013.01.23.00.26.02 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 00:26:05 -0800 (PST) From: Haojian Zhuang To: linux@arm.linux.org.uk, marek.vasut@gmail.com, robert.jarzmik@free.fr, daniel@caiaq.de, linux-arm-kernel@lists.infradead.org, linus.walleij@linaro.org, grant.likely@secretlab.ca, cxie4@marvell.com Cc: patches@linaro.org, Haojian Zhuang Subject: [PATCH 01/10] gpio: pxa: set initcall level to module init Date: Wed, 23 Jan 2013 16:25:45 +0800 Message-Id: <1358929554-32265-2-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1358929554-32265-1-git-send-email-haojian.zhuang@linaro.org> References: <1358929554-32265-1-git-send-email-haojian.zhuang@linaro.org> X-Gm-Message-State: ALoCoQlDCxC3R3n0chBejELPIhH4fvxqvsbkmnjUiaHzyBM/xsryJGGpBJHFAjSBjt7QcAEnpTJv gpio & pinctrl driver are used together. The pinctrl driver is already launched before gpio driver in Makefile. So set gpio driver to module init level. Otherwise, the sequence will be inverted. Signed-off-by: Haojian Zhuang --- drivers/gpio/gpio-pxa.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 8325f58..9cc108d 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -642,12 +642,7 @@ static struct platform_driver pxa_gpio_driver = { .of_match_table = of_match_ptr(pxa_gpio_dt_ids), }, }; - -static int __init pxa_gpio_init(void) -{ - return platform_driver_register(&pxa_gpio_driver); -} -postcore_initcall(pxa_gpio_init); +module_platform_driver(pxa_gpio_driver); #ifdef CONFIG_PM static int pxa_gpio_suspend(void)