Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bcma: gpio: don't cast u32 to unsigned long

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/
  • Loading branch information...
commit d5ab2adbc356473602efa128bde72135b68ae45f 1 parent 7c1bc0d
@Zajec Zajec authored ralfbaechle committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/bcma/driver_gpio.c
View
4 drivers/bcma/driver_gpio.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.