]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: Fix error value returned by several bus drivers
authorJean Delvare <khali@linux-fr.org>
Thu, 12 Jan 2012 19:32:03 +0000 (20:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 21:53:21 +0000 (13:53 -0800)
commitadafb366fb48fba6384818fa117ac89ce4ea75a8
treec25c9f9bc71d26f999fe8a93739f46dacbab28b2
parent0e60934064ce77caeff195b0de40b904f4098da3
i2c: Fix error value returned by several bus drivers

commit 7c1f59c9d5caf3a84f35549b5d58f3c055a68da5 upstream.

When adding checks for ACPI resource conflicts to many bus drivers,
not enough attention was paid to the error paths, and for several
drivers this causes 0 to be returned on error in some cases. Fix this
by properly returning a non-zero value on every error.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-nforce2.c
drivers/i2c/busses/i2c-sis5595.c
drivers/i2c/busses/i2c-sis630.c
drivers/i2c/busses/i2c-viapro.c