Merge branch 'late/soc' into devel-late
[deliverable/linux.git] / drivers / gpio / gpio-wm831x.c
index deb949e75ec1dee2f6ad20c2541148beac431d1a..e56a2165641c845137b0b37afd4c30d93f570a84 100644 (file)
@@ -102,10 +102,8 @@ static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
        struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
        struct wm831x *wm831x = wm831x_gpio->wm831x;
 
-       if (!wm831x->irq_base)
-               return -EINVAL;
-
-       return wm831x->irq_base + WM831X_IRQ_GPIO_1 + offset;
+       return irq_create_mapping(wm831x->irq_domain,
+                                 WM831X_IRQ_GPIO_1 + offset);
 }
 
 static int wm831x_gpio_set_debounce(struct gpio_chip *chip, unsigned offset,
This page took 0.027938 seconds and 5 git commands to generate.