diff options
-rw-r--r-- | drivers/rtc/rtc-pcf8583.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf8583.c b/drivers/rtc/rtc-pcf8583.c index d48b03374586..556d0e7da35b 100644 --- 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) | |||
332 | } | 332 | } |
333 | }; | 333 | }; |
334 | 334 | ||
335 | if (!i2c_check_functionality(adap, I2C_FUNC_I2C)) | ||
336 | return 0; | ||
337 | |||
335 | pcf = kzalloc(sizeof(*pcf), GFP_KERNEL); | 338 | pcf = kzalloc(sizeof(*pcf), GFP_KERNEL); |
336 | if (!pcf) | 339 | if (!pcf) |
337 | return -ENOMEM; | 340 | return -ENOMEM; |