diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-04-30 01:20:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 03:28:33 +0200 |
commit | dbda161be8ae43133bbeac34da3ad99ffeb63556 (patch) | |
tree | f7c15021e8cf39c6c6d7bcd6de681b29d06e6032 /init | |
parent | drivers/rtc/rtc-tps6586x.c: remove incorrect use of rtc_device_unregister (diff) | |
download | linux-dbda161be8ae43133bbeac34da3ad99ffeb63556.tar.xz linux-dbda161be8ae43133bbeac34da3ad99ffeb63556.zip |
drivers/rtc/rtc-tps65910.c: fix incorrect return value on error
'ret' was not initialized to correct error value before returning.
Since 'irq' is also being tested for 0, we cannot return irq itself as
it means function is success even though we are returning before
completing the probe.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Cc: Chiwoong Byun <woong.byun@samsung.com>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
Cc: Laxman dewangan <ldewangan@nvidia.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions