From: Fabio Estevam Date: Thu, 4 Oct 2012 03:15:09 +0000 (-0300) Subject: gpio: gpio-da9052: Convert to the new da9052 interrupt functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d511b9c3626c83874824b1118f8a2e84ef63a7d3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Fabio Estevam Reviewed-by: Mark Brown Reviewed-by: Linus Walleij Signed-off-by: Samuel Ortiz --- 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) 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 = {