diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-06-04 00:13:15 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-14 06:12:20 -0400 |
commit | 476f8b4c94a90d1167961d90a5ed68dbe87c62da (patch) | |
tree | 2b60b492c8bc55630041c6c7975074ac2be09c7c /drivers/gpio/gpio-mxc.c | |
parent | c16edb8b3a070be758a97bc6cd00855c7bbccec4 (diff) |
gpio: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
already have a pointer to corresponding irq_desc.
Preparatory patch for the removal of the 'irq' argument from irq flow
handlers.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/gpio/gpio-mxc.c')
-rw-r--r-- | drivers/gpio/gpio-mxc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index ec1eb1b7250f..0f740276ed2b 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c | |||
@@ -275,8 +275,8 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) | |||
275 | static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc) | 275 | static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc) |
276 | { | 276 | { |
277 | u32 irq_stat; | 277 | u32 irq_stat; |
278 | struct mxc_gpio_port *port = irq_get_handler_data(irq); | 278 | struct mxc_gpio_port *port = irq_desc_get_handler_data(desc); |
279 | struct irq_chip *chip = irq_get_chip(irq); | 279 | struct irq_chip *chip = irq_desc_get_chip(desc); |
280 | 280 | ||
281 | chained_irq_enter(chip, desc); | 281 | chained_irq_enter(chip, desc); |
282 | 282 | ||
@@ -292,7 +292,7 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc) | |||
292 | { | 292 | { |
293 | u32 irq_msk, irq_stat; | 293 | u32 irq_msk, irq_stat; |
294 | struct mxc_gpio_port *port; | 294 | struct mxc_gpio_port *port; |
295 | struct irq_chip *chip = irq_get_chip(irq); | 295 | struct irq_chip *chip = irq_desc_get_chip(desc); |
296 | 296 | ||
297 | chained_irq_enter(chip, desc); | 297 | chained_irq_enter(chip, desc); |
298 | 298 | ||