From 9cf5bd0c364490171033122f239c3c7c332dffbb Mon Sep 17 00:00:00 2001 From: Jarkko Nikula Date: Wed, 7 Nov 2007 12:54:33 +0200 Subject: [PATCH] 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 --- arch/arm/mach-omap2/board-n800.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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(); -- 2.41.1