From: Feng Tang Date: Tue, 13 Dec 2011 15:53:49 +0000 (+0800) Subject: gpio-ml-ioh: fix a bug in the interrupt handler X-Git-Tag: upstream/snapshot3+hdmi~8559^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9ea14efa5277c47efec341dee2c408b6b80f854;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git gpio-ml-ioh: fix a bug in the interrupt handler GPIO's irq action's dev_id is set to the first struct ioh_gpio chip, so when loop checking the 8 chips, the "chip" should be changed according. Signed-off-by: Feng Tang Signed-off-by: Grant Likely --- diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index ea8e738..92b6f51a 100644 --- a/drivers/gpio/gpio-ml-ioh.c +++ b/drivers/gpio/gpio-ml-ioh.c @@ -339,7 +339,7 @@ static irqreturn_t ioh_gpio_handler(int irq, void *dev_id) int i, j; int ret = IRQ_NONE; - for (i = 0; i < 8; i++) { + for (i = 0; i < 8; i++, chip++) { reg_val = ioread32(&chip->reg->regs[i].istatus); for (j = 0; j < num_ports[i]; j++) { if (reg_val & BIT(j)) {