Skip to content

Commit

Permalink
gpio: davinci: Add the missing of-node pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Keerthy authored and Linus Walleij committed Feb 10, 2016
1 parent 73c13c8 commit 310a7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 310a7e6

Please sign in to comment.