]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-sibyte: Fix an error path
authorJean Delvare <khali@linux-fr.org>
Mon, 14 Jan 2008 20:53:31 +0000 (21:53 +0100)
committerJean Delvare <khali@hyperion.delvare>
Mon, 14 Jan 2008 20:53:31 +0000 (21:53 +0100)
commitb1ff73be5af8887af6850c0ce54e1ebf4a2fceda
tree2a1d65b3a80ffaa21cd9e6835c8d35fb44c91865
parentcdcba2b7b9f4b1e6c92950b757e3ba37082c5fb5
i2c-sibyte: Fix an error path

If the registration of the second I2C channel fails, we really want to
unregister the first one before we return with an error.

While we're here, fix the printk right above so that it displays the
real driver name.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
drivers/i2c/busses/i2c-sibyte.c