diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-10-03 23:15:09 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-20 06:21:11 -0500 |
commit | d511b9c3626c83874824b1118f8a2e84ef63a7d3 (patch) | |
tree | 3491b0a0812d204021e069549647cbbc0e9ba6f4 /drivers | |
parent | 4b5edf7887c6ec8c09c9064a2d14b578ef1904fe (diff) |
gpio: gpio-da9052: Convert to the new da9052 interrupt functions
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-da9052.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c index 24b8c2974047..63f9f5bbc75c 100644 --- a/drivers/gpio/gpio-da9052.c +++ b/drivers/gpio/gpio-da9052.c | |||
@@ -185,7 +185,11 @@ static int da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset) | |||
185 | struct da9052_gpio *gpio = to_da9052_gpio(gc); | 185 | struct da9052_gpio *gpio = to_da9052_gpio(gc); |
186 | struct da9052 *da9052 = gpio->da9052; | 186 | struct da9052 *da9052 = gpio->da9052; |
187 | 187 | ||
188 | return da9052->irq_base + DA9052_IRQ_GPI0 + offset; | 188 | int irq; |
189 | |||
190 | irq = regmap_irq_get_virq(da9052->irq_data, DA9052_IRQ_GPI0 + offset); | ||
191 | |||
192 | return irq; | ||
189 | } | 193 | } |
190 | 194 | ||
191 | static struct gpio_chip reference_gp __devinitdata = { | 195 | static struct gpio_chip reference_gp __devinitdata = { |