regmap: Fix typo in IRQ register striding
Mark Brown [Thu, 17 May 2012 12:59:40 +0000 (13:59 +0100)]
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 38e7f5d1b73e71f87745a9c3e5806a6c28c34a53)

Change-Id: I481f19dab58deb0a6959c2668f054f90afdac668
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/131160
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/base/regmap/regmap-irq.c

index 7bac1bd..a91636f 100644 (file)
@@ -114,7 +114,7 @@ static irqreturn_t regmap_irq_thread(int irq, void *d)
         * doing a write per register.
         */
        for (i = 0; i < data->chip->num_regs; i++) {
-               ret = regmap_read(map, chip->mask_base + (i * map->reg_stride
+               ret = regmap_read(map, chip->status_base + (i * map->reg_stride
                                   * data->irq_reg_stride),
                                   &data->status_buf[i]);