Skip to content

Commit

Permalink
gpio: gpio-da9052: Convert to the new da9052 interrupt functions
Browse files Browse the repository at this point in the history
Convert to the new da9052 interrupt functions, so that we can get rid of
irq_base references.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Fabio Estevam authored and Samuel Ortiz committed Nov 20, 2012
1 parent 4b5edf7 commit d511b9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpio/gpio-da9052.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ static int da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset)
struct da9052_gpio *gpio = to_da9052_gpio(gc);
struct da9052 *da9052 = gpio->da9052;

return da9052->irq_base + DA9052_IRQ_GPI0 + offset;
int irq;

irq = regmap_irq_get_virq(da9052->irq_data, DA9052_IRQ_GPI0 + offset);

return irq;
}

static struct gpio_chip reference_gp __devinitdata = {
Expand Down

0 comments on commit d511b9c

Please sign in to comment.