]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c: __must_check fixes, i2c-dev
authorJean Delvare <khali@linux-fr.org>
Tue, 15 Aug 2006 16:30:24 +0000 (18:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:50 +0000 (15:38 -0700)
commitdefcb46ed4666095677c8f52904b9e328587a20d
tree99ff28198c12230510a9864d64971268c2d75617
parentb119c6c952a086f74202ccda4b7ed72161bb6522
i2c: __must_check fixes, i2c-dev

i2c: __must_check fixes (i2c-dev)

Check for error on sysfs file creation.
Check for error on device creation.
Delete sysfs file on device destruction.

I couldn't test this one beyond compilation, as it applies on top of
another patch in Greg's tree [1] which breaks all my systems when I
apply it (my udev isn't recent enough.) Anyone with bleeding edge udev
is welcome to test and report.

[1] http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/i2c/i2c-dev-device.patch

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c