From: Jarkko Nikula Date: Wed, 7 Nov 2007 10:54:33 +0000 (+0200) Subject: ARM: OMAP: N800: Use I2C bus registration helper X-Git-Tag: v2.6.24-omap1~213 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9cf5bd0c364490171033122f239c3c7c332dffbb;p=linux-2.6-omap-h63xx.git ARM: OMAP: N800: Use I2C bus registration helper Use 400 kHz bus clock for both busses since board components are rated for it. Signed-off-by: Jarkko Nikula Acked-by: David Brownell Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c index 061877fb867..1604513271b 100644 --- a/arch/arm/mach-omap2/board-n800.c +++ b/arch/arm/mach-omap2/board-n800.c @@ -452,12 +452,6 @@ static void __init nokia_n800_init(void) { platform_add_devices(n800_devices, ARRAY_SIZE(n800_devices)); - i2c_register_board_info(1, n800_i2c_board_info_1, - ARRAY_SIZE(n800_i2c_board_info_1)); - - i2c_register_board_info(2, n800_i2c_board_info_2, - ARRAY_SIZE(n800_i2c_board_info_2)); - n800_flash_init(); n800_mmc_init(); n800_bt_init(); @@ -469,6 +463,10 @@ static void __init nokia_n800_init(void) spi_register_board_info(n800_spi_board_info, ARRAY_SIZE(n800_spi_board_info)); omap_serial_init(); + omap_register_i2c_bus(1, 400, n800_i2c_board_info_1, + ARRAY_SIZE(n800_i2c_board_info_1)); + omap_register_i2c_bus(2, 400, n800_i2c_board_info_2, + ARRAY_SIZE(n800_i2c_board_info_2)); mipid_dev_init(); blizzard_dev_init(); tsc2301_dev_init();