linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: Russell King <linux@arm.linux.org.uk>,
	Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>,
	linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org
Subject: [PATCH 5/5] ARM: sa1100: use handle_domain_irq
Date: Mon, 22 Dec 2014 13:05:40 +0300	[thread overview]
Message-ID: <1419242740-20219-5-git-send-email-dbaryshkov@gmail.com> (raw)
In-Reply-To: <1419242740-20219-1-git-send-email-dbaryshkov@gmail.com>

Use handle_domain_irq instead of handle_IRQ to automatically map
hardware irq number to virq.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/arm/mach-sa1100/irq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c
index a7d116a..65aebfa 100644
--- a/arch/arm/mach-sa1100/irq.c
+++ b/arch/arm/mach-sa1100/irq.c
@@ -147,7 +147,8 @@ sa1100_handle_irq(struct pt_regs *regs)
 		if (mask == 0)
 			break;
 
-		handle_IRQ(ffs(mask) - 1 + IRQ_GPIO0_SC, regs);
+		handle_domain_irq(sa1100_normal_irqdomain,
+				ffs(mask) - 1, regs);
 	} while (1);
 }
 
-- 
2.1.3


  parent reply	other threads:[~2014-12-22 10:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 10:05 [PATCH 1/5] ARM: sa1100: split irq handling for low GPIOs Dmitry Eremin-Solenikov
2014-12-22 10:05 ` [PATCH 2/5] ARM: sa1100: merge both GPIO irqdomains Dmitry Eremin-Solenikov
2014-12-22 10:05 ` [PATCH 3/5] ARM: sa1100: switch to irq_domain_add_simple() Dmitry Eremin-Solenikov
2014-12-22 10:05 ` [PATCH 4/5] ARM: sa1100: move GPIO-related IRQ code to gpio driver Dmitry Eremin-Solenikov
2014-12-22 10:05 ` Dmitry Eremin-Solenikov [this message]
2015-01-14  9:35 ` [PATCH 1/5] ARM: sa1100: split irq handling for low GPIOs Linus Walleij
2015-01-14  9:36   ` Dmitry Eremin-Solenikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1419242740-20219-5-git-send-email-dbaryshkov@gmail.com \
    --to=dbaryshkov@gmail.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).