]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c: __must_check fixes (chip drivers)
authorJean Delvare <khali@linux-fr.org>
Sun, 3 Sep 2006 20:20:24 +0000 (22:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:51 +0000 (15:38 -0700)
commit7d9db67febf67dd76329a9dd8f97cf4611a8ac2e
tree6354fa99b17f89c8f26ccf7c440d0d29096f2dc2
parentb32d20dc8b187e03605f091dbde9a78676a2a642
i2c: __must_check fixes (chip drivers)

i2c: __must_check fixes (chip drivers)

Check for error on sysfs file creation.
Delete sysfs files on device removal.

The approach taken for the most complex case (pcf8591) is similar to
what Mark M. Hoffman proposed for hardware monitoring chip drivers.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ben Gardner <bgardner@wabtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/chips/eeprom.c
drivers/i2c/chips/max6875.c
drivers/i2c/chips/pca9539.c
drivers/i2c/chips/pcf8574.c
drivers/i2c/chips/pcf8591.c