pinctrl: bcm2835: Avoid warning from __irq_do_set_handler
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 21 Jun 2017 18:20:04 +0000 (20:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Jun 2017 09:04:38 +0000 (11:04 +0200)
commit37a2f8e5522abd8e206a0da1622034382aa6683d
tree096add70a153036b838c189f35002c7599b723a0
parenta66f9d93c18b37ac1a9a8fb710a5369b30a2f290
pinctrl: bcm2835: Avoid warning from __irq_do_set_handler

We get a warning during boot with enabled EARLY_PRINTK that
we try to set a irq_chip without data. This is caused by ignoring
the return value of irq_of_parse_and_map(). So avoid calling
gpiochip_set_chained_irqchip() in error case.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: 85ae9e512f43 ("pinctrl: bcm2835: switch to GPIOLIB_IRQCHIP")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c