extcon: max14577: Properly handle regmap_irq_get_virq error
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 18 Apr 2014 14:47:30 +0000 (16:47 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Apr 2014 08:26:31 +0000 (17:26 +0900)
commit369afd4ba22f5b8de0c9229b6e62b3f9e2207034
tree3ca0176a759326d5b204231d97cb51af435d0ae5
parent12adef5b49e98eb181b4163c36e2998169e1379b
extcon: max14577: Properly handle regmap_irq_get_virq error

The regmap_irq_get_virq may return 0 or -EINVAL on error. Fail the probe
in both situations.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max14577.c