]> Pileus Git - ~andy/linux/commitdiff
bcma: gpio: don't cast u32 to unsigned long
authorRafał Miłecki <zajec5@gmail.com>
Mon, 13 Jan 2014 19:05:17 +0000 (20:05 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 24 Jan 2014 21:39:54 +0000 (22:39 +0100)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6343/

drivers/bcma/driver_gpio.c

index 040241979fcbb98f6e86425e63033132d9e7a43e..25f9887a35d08e89600e8aca86fc8c72062600f6 100644 (file)
@@ -117,13 +117,13 @@ static irqreturn_t bcma_gpio_irq_handler(int irq, void *dev_id)
        u32 val = bcma_cc_read32(cc, BCMA_CC_GPIOIN);
        u32 mask = bcma_cc_read32(cc, BCMA_CC_GPIOIRQ);
        u32 pol = bcma_cc_read32(cc, BCMA_CC_GPIOPOL);
-       u32 irqs = (val ^ pol) & mask;
+       unsigned long irqs = (val ^ pol) & mask;
        int gpio;
 
        if (!irqs)
                return IRQ_NONE;
 
-       for_each_set_bit(gpio, (unsigned long *)&irqs, cc->gpio.ngpio)
+       for_each_set_bit(gpio, &irqs, cc->gpio.ngpio)
                generic_handle_irq(bcma_gpio_to_irq(&cc->gpio, gpio));
        bcma_chipco_gpio_polarity(cc, irqs, val & irqs);