diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-06-04 12:13:15 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-14 12:12:20 +0200 |
commit | 476f8b4c94a90d1167961d90a5ed68dbe87c62da (patch) | |
tree | 2b60b492c8bc55630041c6c7975074ac2be09c7c /drivers/gpio/gpio-dwapb.c | |
parent | c16edb8b3a070be758a97bc6cd00855c7bbccec4 (diff) | |
download | linux-stable-476f8b4c94a90d1167961d90a5ed68dbe87c62da.tar.gz linux-stable-476f8b4c94a90d1167961d90a5ed68dbe87c62da.tar.bz2 linux-stable-476f8b4c94a90d1167961d90a5ed68dbe87c62da.zip |
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-dwapb.c')
-rw-r--r-- | drivers/gpio/gpio-dwapb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 55fa9853a7f2..c5be4b9b8baf 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -149,7 +149,7 @@ static u32 dwapb_do_irq(struct dwapb_gpio *gpio) static void dwapb_irq_handler(u32 irq, struct irq_desc *desc) { - struct dwapb_gpio *gpio = irq_get_handler_data(irq); + struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc); struct irq_chip *chip = irq_desc_get_chip(desc); dwapb_do_irq(gpio); |