diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-07-13 04:58:22 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-13 08:59:15 -0400 |
commit | 9ec97561aa6ddc1c1ef6f522a72c883781c4a67d (patch) | |
tree | 156d852f04c37f7a335a33f41c21b3ad33e6f7f7 /arch/arm/mach-pxa | |
parent | 6947d04a5c49bf036c779527e4efa1d64a752513 (diff) |
ARM/pxa: Prepare balloon3_irq_handler for irq argument removal
The irq argument of most interrupt flow handlers is unused or merily
used instead of a local variable. The handlers which need the irq
argument can retrieve the irq number from the irq descriptor.
While at it fix the pointless lookup of irq_data with the proper
methods to retrieve the same information from the irq descriptor.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Russell King <linux+kernel@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/balloon3.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index d897292712eb..4b5eb67f2529 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -496,18 +496,18 @@ static struct irq_chip balloon3_irq_chip = { | |||
496 | .irq_unmask = balloon3_unmask_irq, | 496 | .irq_unmask = balloon3_unmask_irq, |
497 | }; | 497 | }; |
498 | 498 | ||
499 | static void balloon3_irq_handler(unsigned int irq, struct irq_desc *desc) | 499 | static void balloon3_irq_handler(unsigned int __irq, struct irq_desc *desc) |
500 | { | 500 | { |
501 | unsigned long pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & | 501 | unsigned long pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & |
502 | balloon3_irq_enabled; | 502 | balloon3_irq_enabled; |
503 | do { | 503 | do { |
504 | /* clear useless edge notification */ | 504 | struct irq_data *d = irq_desc_get_irq_data(desc); |
505 | if (desc->irq_data.chip->irq_ack) { | 505 | struct irq_chip *chip = irq_data_get_chip(d); |
506 | struct irq_data *d; | 506 | unsigned int irq; |
507 | 507 | ||
508 | d = irq_get_irq_data(BALLOON3_AUX_NIRQ); | 508 | /* clear useless edge notification */ |
509 | desc->irq_data.chip->irq_ack(d); | 509 | if (chip->irq_ack) |
510 | } | 510 | chip->irq_ack(d); |
511 | 511 | ||
512 | while (pending) { | 512 | while (pending) { |
513 | irq = BALLOON3_IRQ(0) + __ffs(pending); | 513 | irq = BALLOON3_IRQ(0) + __ffs(pending); |