MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

Scott Wood scottwood at freescale.com
Tue Oct 14 03:31:51 EST 2008


On Mon, Oct 13, 2008 at 02:01:55PM +0200, Joakim Tjernlund wrote:
> Secondly i2c, I have this in my platform driver:
> static struct i2c_board_info __initdata tmcu_i2c_devices[] = {
> 	{ I2C_BOARD_INFO("rtc-ds1307", 0x68),
> 	  .type = "ds1337",
> 	},
> };
> 
> int __init tmcu_i2c_board_devs(void)
> {
> 	int ret;
> 	ret = i2c_register_board_info(0, tmcu_i2c_devices,
> 				      ARRAY_SIZE(tmcu_i2c_devices));
> 	return ret;
> }
> arch_initcall(tmcu_i2c_board_devs);

i2c-mpc.c now registers as a dynamically-numbered bus; you need to either
use the device tree, or call i2c_new_device().

-Scott



More information about the Linuxppc-dev mailing list