drivers/rtc/rtc-pcf2123.c: fix error return code in pcf2123_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 29 Apr 2013 23:21:07 +0000 (16:21 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:15 +0000 (14:35 +0100)
commit7abe9d39f7a6c39cb282dac10c9345e242b4c6fb
treeba0244a852220a0e4ae1bfa40f0e09c7a33f4ca4
parent01b0d887f67a388fb2a658ee2bdd74e5ba146818
drivers/rtc/rtc-pcf2123.c: fix error return code in pcf2123_probe()

commit 35623715818dfa720cccf99cd280dcbb4b78da23 upstream.

Fix to return -ENODEV in the chip not found error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/rtc/rtc-pcf2123.c