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

i2c: __must_check fixes (core drivers)

Check for error on sysfs file creation.
Check for error on device registration.
Check for error on class device registration.

Greg, I am not familiar with completion, can you please tell me if I
need to take care of it in the error paths (as I did in this patch,
see /* Needed? */ comments), or if it isn't needed?

These patches were tested, including forced errors, so they should work
fine. But of course more testing can't hurt.

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