]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tps65910.c: fix incorrect return value on error
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 26 Mar 2013 23:25:46 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:52 +0000 (17:12 +1100)
commitfd6925f6cc81082c56bd818fc5f12a22bb8972a9
treec95f82130fe8f505babf1bda05a78f30b59482a9
parent47c81189d36908e7838841a1a46c81edeb452017
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>
drivers/rtc/rtc-tps65910.c