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
rtc-pcf8583: Check for i2c adapter functionality
[pandora-kernel.git]
/
drivers
/
rtc
/
rtc-pcf8583.c
diff --git
a/drivers/rtc/rtc-pcf8583.c
b/drivers/rtc/rtc-pcf8583.c
index
d48b033
..
556d0e7
100644
(file)
--- a/
drivers/rtc/rtc-pcf8583.c
+++ b/
drivers/rtc/rtc-pcf8583.c
@@
-332,6
+332,9
@@
static int pcf8583_probe(struct i2c_adapter *adap, int addr, int kind)
}
};
+ if (!i2c_check_functionality(adap, I2C_FUNC_I2C))
+ return 0;
+
pcf = kzalloc(sizeof(*pcf), GFP_KERNEL);
if (!pcf)
return -ENOMEM;