[i2c] [PATCH] fixed undefined reference to i2c_del_bus in i2c_sibyte_exit()

Jean Delvare khali at linux-fr.org
Fri Sep 29 08:38:22 CEST 2006


Ohayo Yoichi,

> This patch has fixed 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'
> 
> Yoichi
> 
> Signed-off-by: Yoichi Yuasa <yoichi_yuasa at tripeaks.co.jp>
> 
> --- generic-orig/drivers/i2c/busses/i2c-sibyte.c	2006-09-29 09:50:17.182702750 +0900
> +++ generic/drivers/i2c/busses/i2c-sibyte.c	2006-09-29 10:39:37.642902000 +0900
> @@ -210,8 +210,8 @@
>  
>  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]);
>  }

Oops, my bad. This is the result of a cleanup I made to this driver. I
don't have the hardware so I couldn't test the result.

Thanks for reporting and thanks for the patch, and sorry for the
trouble. I'll push your fix upstream immediately.

Arigato,
-- 
Jean Delvare



More information about the i2c mailing list