Skip to content

Commit 310a7e6

Browse files
Keerthyjlinusw
authored andcommitted
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 <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 73c13c8 commit 310a7e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-davinci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev)
511511
return irq;
512512
}
513513

514-
irq_domain = irq_domain_add_legacy(NULL, ngpio, irq, 0,
514+
irq_domain = irq_domain_add_legacy(dev->of_node, ngpio, irq, 0,
515515
&davinci_gpio_irq_ops,
516516
chips);
517517
if (!irq_domain) {

0 commit comments

Comments
 (0)