Skip to contentSkip to conversation

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

PATCH New Rafał Miłecki 1 participant 1 message Jan 13, 2014

Subsystems (2)
lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: gpio: don't cast u32 to unsigned long

---
 drivers/bcma/driver_gpio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bcma/driver_gpio.c +2 -2
index c2728a0..69c82e2 100644
@@ -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);
 
Signature · 1 line
1.7.10.4