[PATCH] i2c: Handle i2c_add_adapter failure in i2c algorithm drivers
authorMark M. Hoffman <mhoffman@lightlink.com>
Sat, 1 Jul 2006 15:16:06 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 Jul 2006 22:43:07 +0000 (15:43 -0700)
commitb39ad0cf7c19fc14e8f823b1b36245f7a3711655
treef30e4dcfb21bc6aae1dc8300cef28b912339d72c
parent5d925fecac26651e6b0e19cf4ca16933aa640f99
[PATCH] i2c: Handle i2c_add_adapter failure in i2c algorithm drivers

Content-Disposition: inline; filename=i2c-algo-error-handling-fix.patch

It is possible for i2c_add_adapter() to fail.  Several I2C algorithm
drivers ignore that fact.  This (compile-tested only) patch fixes them.

Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/algos/i2c-algo-bit.c
drivers/i2c/algos/i2c-algo-ite.c
drivers/i2c/algos/i2c-algo-pca.c
drivers/i2c/algos/i2c-algo-pcf.c
drivers/i2c/algos/i2c-algo-sibyte.c