diff options
author | Feng Tang <feng.tang@intel.com> | 2011-12-13 23:53:49 +0800 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-12-13 11:05:17 -0700 |
commit | f9ea14efa5277c47efec341dee2c408b6b80f854 (patch) | |
tree | f81e7113a509893ef0a670445537900fcf3ca527 /drivers/gpio/gpio-ml-ioh.c | |
parent | b2888095feb3c651cba5904b0227622e82777b34 (diff) | |
download | linux-rpi3-f9ea14efa5277c47efec341dee2c408b6b80f854.tar.gz linux-rpi3-f9ea14efa5277c47efec341dee2c408b6b80f854.tar.bz2 linux-rpi3-f9ea14efa5277c47efec341dee2c408b6b80f854.zip |
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 <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-ml-ioh.c')
-rw-r--r-- | drivers/gpio/gpio-ml-ioh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index ea8e73869250..92b6f51a206e 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)) { |