ARM, irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 4 Jun 2015 04:13:19 +0000 (12:13 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 13 Jul 2015 12:59:15 +0000 (14:59 +0200)
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>
arch/arm/common/locomo.c
arch/arm/common/sa1111.c
arch/arm/plat-orion/gpio.c

index 133b78e9ff7b1d46311323b4009c0c34fb17927e..ee9b1929b35e9490c7bf5f2c5f6e42d43f7918eb 100644 (file)
@@ -140,7 +140,7 @@ static struct locomo_dev_info locomo_devices[] = {
 
 static void locomo_handler(unsigned int irq, struct irq_desc *desc)
 {
-       struct locomo *lchip = irq_get_chip_data(irq);
+       struct locomo *lchip = irq_desc_get_chip_data(desc);
        int req, i;
 
        /* Acknowledge the parent IRQ */
index 93ee70dbbdd390610520f497e5ce9d27830d1efb..71a219863285a7a35ed0460051d2c6417f251882 100644 (file)
@@ -200,7 +200,7 @@ static void
 sa1111_irq_handler(unsigned int irq, struct irq_desc *desc)
 {
        unsigned int stat0, stat1, i;
-       struct sa1111 *sachip = irq_get_handler_data(irq);
+       struct sa1111 *sachip = irq_desc_get_handler_data(desc);
        void __iomem *mapbase = sachip->base + SA1111_INTC;
 
        stat0 = sa1111_readl(mapbase + SA1111_INTSTATCLR0);
index 4a347dee75ff6345bb5c4ee7ab9fa03a7ec2de88..62743f3ebef252887a2288552d19896bb66e6db8 100644 (file)
@@ -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;