git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA/ucma: Ensure that CM_ID exists prior to access it
[pandora-kernel.git]
/
drivers
/
rtc
/
rtc-pcf2123.c
diff --git
a/drivers/rtc/rtc-pcf2123.c
b/drivers/rtc/rtc-pcf2123.c
index
71bab0e
..
62e1b2c
100644
(file)
--- a/
drivers/rtc/rtc-pcf2123.c
+++ b/
drivers/rtc/rtc-pcf2123.c
@@
-42,6
+42,7
@@
#include <linux/slab.h>
#include <linux/rtc.h>
#include <linux/spi/spi.h>
+#include <linux/module.h>
#define DRV_VERSION "0.6"
@@
-263,6
+264,7
@@
static int __devinit pcf2123_probe(struct spi_device *spi)
if (!(rxbuf[0] & 0x20)) {
dev_err(&spi->dev, "chip not found\n");
+ ret = -ENODEV;
goto kfree_exit;
}