pcmcia: soc_common: ignore invalid interrupts
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 10:17:50 +0000 (11:17 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 22 Sep 2016 08:38:57 +0000 (09:38 +0100)
commita4941191235e0fee2dd8bad3b7c61478f229c962
treedceac7aae8fb83d0771134a1dbf6837976bdacb3
parent45ca7536d4f9e803c27be113b17c4cdaa12cc960
pcmcia: soc_common: ignore invalid interrupts

If gpiod_to_irq() returns an invalid interrupt, we should not try to use
it as an interrupt number.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/pcmcia/soc_common.c