Skip to content

Commit 783e998

Browse files
rayagondalinusw
authored andcommitted
pinctrl: iproc: Use platform_get_irq_optional() to avoid error message
Use platform_get_irq_optional() instead of platform_get_irq() to avoid below error message during probe: [ 0.589121] iproc-gpio 66424800.gpio: IRQ index 0 not found Signed-off-by: Rayagonda Kokatanur <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Chris Packham <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent a790269 commit 783e998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/bcm/pinctrl-iproc-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ static int iproc_gpio_probe(struct platform_device *pdev)
849849
"gpio-ranges");
850850

851851
/* optional GPIO interrupt support */
852-
irq = platform_get_irq(pdev, 0);
852+
irq = platform_get_irq_optional(pdev, 0);
853853
if (irq > 0) {
854854
struct irq_chip *irqc;
855855
struct gpio_irq_chip *girq;

0 commit comments

Comments
 (0)