rtc-pcf8583: Check for i2c adapter functionality
authorJean Delvare <khali@linux-fr.org>
Tue, 16 Oct 2007 08:28:18 +0000 (01:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:13 +0000 (09:43 -0700)
commitc018664c51aca418e16bc83f75257c68250fb052
tree7c5578818c136391ff32cac934781c8423ee51e8
parenta95e23a27b33db5d5f40278b16a42e5e20188015
rtc-pcf8583: Check for i2c adapter functionality

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 <khali@linux-fr.org>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pcf8583.c