]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i2c-sibyte: Fix modular build breakage
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Fri, 29 Sep 2006 06:42:38 +0000 (08:42 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:34:17 +0000 (09:34 -0700)
Fix undefined reference in i2c_sibyte_exit().

   drivers/built-in.o: In function `i2c_sibyte_exit':
   i2c-sibyte.c:(.exit.text+0x368): undefined reference to `i2c_del_bus'
   i2c-sibyte.c:(.exit.text+0x368): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus'
   i2c-sibyte.c:(.exit.text+0x38c): undefined reference to `i2c_del_bus'
   i2c-sibyte.c:(.exit.text+0x38c): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus'

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/i2c/busses/i2c-sibyte.c

index 8f2b1f0deb813b6876fa233c525094ea522e1cf7..0ca599d3b4029851ddf022bab424759824060ec2 100644 (file)
@@ -210,8 +210,8 @@ static int __init i2c_sibyte_init(void)
 
 static void __exit i2c_sibyte_exit(void)
 {
-       i2c_del_bus(&sibyte_board_adapter[0]);
-       i2c_del_bus(&sibyte_board_adapter[1]);
+       i2c_del_adapter(&sibyte_board_adapter[0]);
+       i2c_del_adapter(&sibyte_board_adapter[1]);
 }
 
 module_init(i2c_sibyte_init);