From: Sachin Kamat Date: Mon, 29 Apr 2013 23:20:10 +0000 (-0700) Subject: drivers/rtc/rtc-tps65910.c: fix incorrect return value on error X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~123^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbda161be8ae43133bbeac34da3ad99ffeb63556;p=pandora-kernel.git 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 Acked-by: Venu Byravarasu Cc: Chiwoong Byun Cc: Jonghwa Lee Cc: Laxman dewangan Cc: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed