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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:11:52 +0000 (20:11 -0700)
commit57a30a41fd5191c6eef3e868e2ae2d365c74b0f2
treebac8254444292662e3d5b981508ad0203ae42c97
parentb6687c4967b8520ef984bb63036422339266b3b9
extcon: max14577: Properly handle regmap_irq_get_virq error

commit 369afd4ba22f5b8de0c9229b6e62b3f9e2207034 upstream.

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>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-max14577.c