patch-2.4.0-test5 linux/drivers/i2c/i2c-algo-bit.c

Next file: linux/drivers/i2c/i2c-algo-pcf.c
Previous file: linux/drivers/char/wdt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/i2c/i2c-algo-bit.c linux/drivers/i2c/i2c-algo-bit.c
@@ -21,7 +21,7 @@
 /* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> and even
    Frodo Looijaard <frodol@dds.nl> */
 
-/* $Id: i2c-algo-bit.c,v 1.26 2000/01/24 02:06:33 mds Exp $ */
+/* $Id: i2c-algo-bit.c,v 1.27 2000/07/09 15:16:16 frodo Exp $ */
 
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -594,8 +594,10 @@
 
 int i2c_bit_del_bus(struct i2c_adapter *adap)
 {
+	int res;
 
-	i2c_del_adapter(adap);
+	if ((res = i2c_del_adapter(adap)) < 0)
+		return res;
 
 	DEB2(printk("i2c-algo-bit.o: adapter unregistered: %s\n",adap->name));
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)