summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sch311x_wdt.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 15:46:44 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2012-11-21 20:00:40 +0900
commit00af4b16e098f7899d78c7009f0b525c9c512f94 (patch)
treea73ea5686d6008c8e99d80027019f520f6c82069 /drivers/watchdog/sch311x_wdt.c
parent68c9274d0fd1f66c6d105c52a61268d943e30862 (diff)
downloadblackbird-op-linux-00af4b16e098f7899d78c7009f0b525c9c512f94.tar.gz
blackbird-op-linux-00af4b16e098f7899d78c7009f0b525c9c512f94.zip
extcon: max77693: Fix incorrect error check and return value
irq_create_mapping() returns 0 if it fails to provide a valid irq number. 'ret' needs to be updated with a negative error code before returning from probe to signal probe failure. While at it, also corrected the 'virq' type to unsigned from signed. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/watchdog/sch311x_wdt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud