Skip to content

Commit d5ab2ad

Browse files
rmileckiralfbaechle
authored andcommitted
bcma: gpio: don't cast u32 to unsigned long
Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: John Crispin <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/6343/
1 parent 7c1bc0d commit d5ab2ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/bcma/driver_gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ static irqreturn_t bcma_gpio_irq_handler(int irq, void *dev_id)
117117
u32 val = bcma_cc_read32(cc, BCMA_CC_GPIOIN);
118118
u32 mask = bcma_cc_read32(cc, BCMA_CC_GPIOIRQ);
119119
u32 pol = bcma_cc_read32(cc, BCMA_CC_GPIOPOL);
120-
u32 irqs = (val ^ pol) & mask;
120+
unsigned long irqs = (val ^ pol) & mask;
121121
int gpio;
122122

123123
if (!irqs)
124124
return IRQ_NONE;
125125

126-
for_each_set_bit(gpio, (unsigned long *)&irqs, cc->gpio.ngpio)
126+
for_each_set_bit(gpio, &irqs, cc->gpio.ngpio)
127127
generic_handle_irq(bcma_gpio_to_irq(&cc->gpio, gpio));
128128
bcma_chipco_gpio_polarity(cc, irqs, val & irqs);
129129

0 commit comments

Comments
 (0)