diff options
author | Keerthy <j-keerthy@ti.com> | 2016-01-28 14:38:50 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-10 10:59:12 +0100 |
commit | 310a7e60435151ccab6dc4bc64b4b3a93b89c0d1 (patch) | |
tree | 4d39446b1b5440757a068a4d0f3e90af55cdc41b /drivers/gpio/gpio-davinci.c | |
parent | gpio: gpio-altera: Remove gpiochip on probe failure. (diff) | |
download | linux-310a7e60435151ccab6dc4bc64b4b3a93b89c0d1.tar.xz linux-310a7e60435151ccab6dc4bc64b4b3a93b89c0d1.zip |
gpio: davinci: Add the missing of-node pointer
Currently the first parameter of irq_domain_add_legacy is NULL.
irq_find_host function returns NULL when we do not populate the of_node
and hence irq_of_parse_and_map call fails whenever we want to request a
gpio irq. This fixes the request_irq failures for gpio interrupts.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index ec58f4288649..c889f3166205 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -511,7 +511,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev) return irq; } - irq_domain = irq_domain_add_legacy(NULL, ngpio, irq, 0, + irq_domain = irq_domain_add_legacy(dev->of_node, ngpio, irq, 0, &davinci_gpio_irq_ops, chips); if (!irq_domain) { |