aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-em.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-10-11 13:21:34 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-10-16 03:59:41 -0400
commit2d61e3e90798fdedb0a33714a30b241a5d5f2744 (patch)
treee9cdfb03d7bfa281becae6a024fc8c714a31f78b /drivers/gpio/gpio-em.c
parentd933cc619e36c2288730fd8a8bdbb16a35dade07 (diff)
gpio: em: drop references to "virtual" IRQ
Rename the argument "virq" to just "irq", this IRQ isn't any more "virtual" than any other Linux IRQ number, we use "hwirq" for the actual hw-numbers, "virq" is just bogus. Cc: Magnus Damm <damm@opensource.se> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-em.c')
-rw-r--r--drivers/gpio/gpio-em.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c
index 160d759170a5..ec190361bf2e 100644
--- a/drivers/gpio/gpio-em.c
+++ b/drivers/gpio/gpio-em.c
@@ -232,16 +232,16 @@ static void em_gio_free(struct gpio_chip *chip, unsigned offset)
232 em_gio_direction_input(chip, offset); 232 em_gio_direction_input(chip, offset);
233} 233}
234 234
235static int em_gio_irq_domain_map(struct irq_domain *h, unsigned int virq, 235static int em_gio_irq_domain_map(struct irq_domain *h, unsigned int irq,
236 irq_hw_number_t hw) 236 irq_hw_number_t hwirq)
237{ 237{
238 struct em_gio_priv *p = h->host_data; 238 struct em_gio_priv *p = h->host_data;
239 239
240 pr_debug("gio: map hw irq = %d, virq = %d\n", (int)hw, virq); 240 pr_debug("gio: map hw irq = %d, irq = %d\n", (int)hwirq, irq);
241 241
242 irq_set_chip_data(virq, h->host_data); 242 irq_set_chip_data(irq, h->host_data);
243 irq_set_chip_and_handler(virq, &p->irq_chip, handle_level_irq); 243 irq_set_chip_and_handler(irq, &p->irq_chip, handle_level_irq);
244 set_irq_flags(virq, IRQF_VALID); /* kill me now */ 244 set_irq_flags(irq, IRQF_VALID); /* kill me now */
245 return 0; 245 return 0;
246} 246}
247 247