extcon: int3496: Propagate error code of gpiod_to_irq()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 23 Feb 2017 10:31:54 +0000 (12:31 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 13 Mar 2017 03:39:30 +0000 (12:39 +0900)
commitbafa687dccbe16cbf9b1824409836d79d6dc6543
treeb4d70ab2ac488937f435204731848d11c24e38e9
parent4495c08e84729385774601b5146d51d9e5849f81
extcon: int3496: Propagate error code of gpiod_to_irq()

gpiod_to_irq() doesn't return 0. Thus, we just adjust condition and
replace -EINVAL by actual error code it returns.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-int3496.c