[PATCH] scx200_acb: Fix return on init error
authorJean Delvare <khali@linux-fr.org>
Wed, 26 Apr 2006 20:50:32 +0000 (22:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 May 2006 20:04:21 +0000 (13:04 -0700)
commit6f9c2963888e60e46a9e0bd09a25740abce29262
treea6f6a310c409fefda006790a77c7ae0d559a33ca
parente515f048c46e457ef61ce9c8b56bd36e825a48a0
[PATCH] scx200_acb: Fix return on init error

The scx200_acb driver shouldn't return failure after initialization
if it successfully registered at least one i2c_adapter, else we are
leaking resources. The driver was OK in that respect up to 2.6.16, a
recent change broke it.

This is part of the fix to bug #6445.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ben Gardner <bgardner@wabtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/scx200_acb.c