mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 09:50:14 -05:00
drivers/rtc/rtc-pcf2123.c: fix error return code in pcf2123_probe()
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 <[email protected]> Cc: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
01ee577a25
commit
3562371581
1 changed files with 1 additions and 0 deletions
|
|
@ -266,6 +266,7 @@ static int pcf2123_probe(struct spi_device *spi)
|
|||
|
||||
if (!(rxbuf[0] & 0x20)) {
|
||||
dev_err(&spi->dev, "chip not found\n");
|
||||
ret = -ENODEV;
|
||||
goto kfree_exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue