]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Passing h2_i2c_board_info via omap_register_i2c_bus instead of i2c_registe...
authorCarlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Mon, 7 Jan 2008 20:27:58 +0000 (16:27 -0400)
committerTony Lindgren <tony@atomide.com>
Tue, 15 Jan 2008 23:36:09 +0000 (15:36 -0800)
This patch passes h2_i2c_board_info via omap_register_i2c_bus instead of
i2c_register_board_info on arch/arm/mach-omap1/board-h3.c file.

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-h3.c

index b86df0aa34419b534aac825d0f808aa872789d1d..b01e6d42fd7f637e6434351771778eb72402ec3f 100644 (file)
@@ -695,16 +695,14 @@ static void __init h3_init(void)
        /* GPIO10 pullup/down register, Enable pullup on GPIO10 */
        omap_cfg_reg(V2_1710_GPIO10);
 
-       i2c_register_board_info(1, h3_i2c_board_info,
-                               ARRAY_SIZE(h3_i2c_board_info));
-
        platform_add_devices(devices, ARRAY_SIZE(devices));
        spi_register_board_info(h3_spi_board_info,
                                ARRAY_SIZE(h3_spi_board_info));
        omap_board_config = h3_config;
        omap_board_config_size = ARRAY_SIZE(h3_config);
        omap_serial_init();
-       omap_register_i2c_bus(1, 100, NULL, 0);
+       omap_register_i2c_bus(1, 100, h3_i2c_board_info,
+                             ARRAY_SIZE(h3_i2c_board_info));
        h3_mmc_init();
        omap_register_gpio_switches(h3_gpio_switches,
                                    ARRAY_SIZE(h3_gpio_switches));