diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-06-04 06:13:19 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-13 14:59:15 +0200 |
commit | f575398bff9ae08086b345ecf724568be53818ee (patch) | |
tree | 3d507453bb431208813cc53a127c93ade91bb786 /arch/arm/plat-orion | |
parent | ARM/LPC32xx: Use irq_set_handler_locked() (diff) | |
download | linux-f575398bff9ae08086b345ecf724568be53818ee.tar.xz linux-f575398bff9ae08086b345ecf724568be53818ee.zip |
ARM, irq: 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.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/plat-orion')
-rw-r--r-- | arch/arm/plat-orion/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index 4a347dee75ff..62743f3ebef2 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c @@ -409,7 +409,7 @@ static int gpio_irq_set_type(struct irq_data *d, u32 type) static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) { - struct orion_gpio_chip *ochip = irq_get_handler_data(irq); + struct orion_gpio_chip *ochip = irq_desc_get_handler_data(desc); u32 cause, type; int i; |