diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 15:46:41 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-21 20:00:40 +0900 |
commit | 68c9274d0fd1f66c6d105c52a61268d943e30862 (patch) | |
tree | b9c580869cc52e249c9a3974907fee287452ee2f /drivers/input/keyboard | |
parent | c0c078c363a578543826bb8bfc9af47c7cc9321b (diff) | |
download | kernel_replicant_linux-68c9274d0fd1f66c6d105c52a61268d943e30862.tar.gz kernel_replicant_linux-68c9274d0fd1f66c6d105c52a61268d943e30862.tar.bz2 kernel_replicant_linux-68c9274d0fd1f66c6d105c52a61268d943e30862.zip |
extcon: max8997: 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/input/keyboard')
0 files changed, 0 insertions, 0 deletions