From patchwork Tue Oct 23 09:46:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12430 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 4354D23F6F for ; Tue, 23 Oct 2012 09:47:14 +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 C9A59A1854C for ; Tue, 23 Oct 2012 09:47:13 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so2722811iag.11 for ; Tue, 23 Oct 2012 02:47:13 -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=IfA9+AXzu9FySBrKQBiNY2DhgstNjwXCSBH2FZ8+s/A=; b=CCVAziKdzJ1Qdh9B419ytbt2ZpFL9Eelxll9zkGaacvk02n1w4yQ2eBfaJ1MjQqeTS aKnOhMctLkCCvpx9CM6ZxLB8ec7lkRjWwYO/i7h1jhmkW2XGzbM5tyOwinbHKMET/drq HoeJpIXkAJpbeGJdU0sBuNDXHp6OVyfUwZuLYCkj1Lp0jcXLs680ozPOdlEIHo3Jy59F dVnY7QiSWv4lf/PX/hM3tkXasP+TEnDleR2igqEqtvRgIwV9apa+7DfGXdEziCTnTS7D tpyu8xxUpSPb3khV4kf7Vko3TVnDO/aGJ7OhkcuDrS4b2xJotmnPQ/0+sG7qKpoW+c2Q VPKg== Received: by 10.50.152.137 with SMTP id uy9mr11964024igb.62.1350985633263; Tue, 23 Oct 2012 02:47:13 -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 n20csp393956igt; Tue, 23 Oct 2012 02:47:12 -0700 (PDT) Received: by 10.14.173.195 with SMTP id v43mr15628914eel.39.1350985631469; Tue, 23 Oct 2012 02:47:11 -0700 (PDT) Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com [207.126.144.113]) by mx.google.com with SMTP id f44si5680306eep.95.2012.10.23.02.47.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 02:47:11 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.113 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-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKUIZnl3mqsGsiqEvbKmWMDLxJB0S0d/Gr@postini.com; Tue, 23 Oct 2012 09:47:11 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 8C70F44; Tue, 23 Oct 2012 09:46:30 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 0573665; Tue, 23 Oct 2012 05:15:51 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 3CC4424C07C; Tue, 23 Oct 2012 11:46:56 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 23 Oct 2012 11:47:01 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Anmar Oueja , Linus Walleij , Lee Jones Subject: [PATCH] pinctrl/nomadik: pass DT node to the irqdomain Date: Tue, 23 Oct 2012 11:46:59 +0200 Message-ID: <1350985619-17408-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: ALoCoQkZfRP/5It6nq01TcOi/OKqidQf0PzNvgVJWBCkI0iJpvBuflvdKyDps62Lt8POD2Ecofz0 From: Linus Walleij When creating the simple irqdomain, pass the DT node pointer along, as is apropriate. Cc: Lee Jones Reported-by: Gabriel Fernandez 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 8bfbad6..cf82d9c 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -1387,7 +1387,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev) if (!np) irq_start = NOMADIK_GPIO_TO_IRQ(pdata->first_gpio); - nmk_chip->domain = irq_domain_add_simple(NULL, + nmk_chip->domain = irq_domain_add_simple(np, NMK_GPIO_PER_CHIP, irq_start, &nmk_gpio_irq_simple_ops, nmk_chip); if (!nmk_chip->domain) {