From: Jean Delvare Not all i2c adapters support I2C-level messaging. Check that the adapter does before probing for a PCF8583 chip, as the driver makes use of i2c_transfer and i2c_master_send. Signed-off-by: Jean Delvare Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton --- drivers/rtc/rtc-pcf8583.c | 3 +++ 1 files changed, 3 insertions(+) diff -puN drivers/rtc/rtc-pcf8583.c~rtc-pcf8583-check-for-i2c-adapter-functionality drivers/rtc/rtc-pcf8583.c --- a/drivers/rtc/rtc-pcf8583.c~rtc-pcf8583-check-for-i2c-adapter-functionality +++ a/drivers/rtc/rtc-pcf8583.c @@ -332,6 +332,9 @@ static int pcf8583_probe(struct i2c_adap } }; + if (!i2c_check_functionality(adap, I2C_FUNC_I2C)) + return 0; + pcf = kzalloc(sizeof(*pcf), GFP_KERNEL); if (!pcf) return -ENOMEM; _