mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
pinctrl: iproc: allow for error from platform_get_irq()
platform_get_irq() can return an error code. Allow for this when getting
the irq.
Fixes: 6f265e5d4d ("pinctrl: bcm-iproc: Pass irqchip when adding gpiochip")
Signed-off-by: Chris Packham <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Scott Branden <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
39b65fbb81
commit
48659227e0
1 changed files with 1 additions and 1 deletions
|
|
@ -845,7 +845,7 @@ static int iproc_gpio_probe(struct platform_device *pdev)
|
|||
|
||||
/* optional GPIO interrupt support */
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq) {
|
||||
if (irq > 0) {
|
||||
struct irq_chip *irqc;
|
||||
struct gpio_irq_chip *girq;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue