From patchwork Tue Oct 23 07:53:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12428 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 BF77D23DEF for ; Tue, 23 Oct 2012 07:54:12 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4EF52A18A97 for ; Tue, 23 Oct 2012 07:54:12 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so2667590iag.11 for ; Tue, 23 Oct 2012 00:54:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=ZgWwx5A/7YUPfgV7XoFORnQZhTiisz+yDA7ZPlAhyzA=; b=piYlJcu4qlrSkeL0PMSl03znFU95YlXIRwjjenMpmA0pmD1sdRkZS0a9eNhD0jiG/O lT7USiPpJDUEVvWSjmVxvJWOsGTAe5jbv7DyU1aarihrF1mtEq0VRqATWxKd90bTjHgd 3eU4jR4NM7j25HulqrWKRoLHj6zuydIt2k2XUOK5RafHKsCQqhzRN8vnm/xQgl4PiLkT 7J8+I9rM05xei1oVbMtcXLCx229Vak3yWM8kBj7QXdQxOpWLcfGf60tv6wWXpCcQTRBn ORhEpMbSbSbCQ5w6cRWISjEcMvkB7tAOHshg9Mb6wtj9MhzHQc8gZQymxa8ZssNs6qaP QULg== Received: by 10.50.88.233 with SMTP id bj9mr11770133igb.70.1350978851717; Tue, 23 Oct 2012 00:54:11 -0700 (PDT) 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.50.67.148 with SMTP id n20csp380296igt; Tue, 23 Oct 2012 00:54:11 -0700 (PDT) Received: by 10.14.184.1 with SMTP id r1mr15380923eem.4.1350978850462; Tue, 23 Oct 2012 00:54:10 -0700 (PDT) Received: from eu1sys200aog110.obsmtp.com (eu1sys200aog110.obsmtp.com [207.126.144.129]) by mx.google.com with SMTP id a8si7655114eep.17.2012.10.23.00.53.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 00:54:10 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.129; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob110.postini.com ([207.126.147.11]) with SMTP ID DSNKUIZNFsfxsXKAhODfes1YEKk2IHY5ZoWf@postini.com; Tue, 23 Oct 2012 07:54:10 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 7E880107; Tue, 23 Oct 2012 07:45:42 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 83D40AC0; Tue, 23 Oct 2012 07:53:54 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 4A054A8098; Tue, 23 Oct 2012 09:53:50 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 23 Oct 2012 09:53:53 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Anmar Oueja , Linus Walleij , Lee Jones Subject: [PATCH] pinctrl/nomadik: use zero as default irq_start Date: Tue, 23 Oct 2012 09:53:49 +0200 Message-ID: <1350978829-12416-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQn9TB+o6baWAaR+yQZ1NG9niBPuEPX/84PZkTtvhye+RijMLbqpNzN3GbRQ6xoEpl068omA From: Linus Walleij The irqdomain semantics were supposed to be such that a linear domain would be used if the passed first_irq was zero or negative, but I got it wrong so only passing zero as first_irq will work properly. Well, zero is NO_IRQ these days so let's pass zero. The semantics of irqdomain_add_simple() will be fixed in a separate patch. Cc: Lee Jones Reported-by: Rikard Olsson Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index d1d3cb9..3834629 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -1281,7 +1281,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev) struct clk *clk; int secondary_irq; void __iomem *base; - int irq_start = -1; + int irq_start = 0; int irq; int ret;