From 2225c363460b813bf133464cca6532a11711a59a Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 26 Oct 2007 16:33:31 +0100 Subject: [PATCH] --- yaml --- r: 72948 b: refs/heads/master c: b23e79fd87529706eb8e9e350226465b4abe70d2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap1/board-h2.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 84bf683f5e84..be1f70d03723 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 914301982f38e5842b28fd2f708208ea456b346a +refs/heads/master: b23e79fd87529706eb8e9e350226465b4abe70d2 diff --git a/trunk/arch/arm/mach-omap1/board-h2.c b/trunk/arch/arm/mach-omap1/board-h2.c index b0921622566f..130681201c19 100644 --- a/trunk/arch/arm/mach-omap1/board-h2.c +++ b/trunk/arch/arm/mach-omap1/board-h2.c @@ -343,6 +343,7 @@ static struct platform_device *h2_devices[] __initdata = { &h2_mcbsp1_device, }; +#ifdef CONFIG_I2C_BOARDINFO static struct i2c_board_info __initdata h2_i2c_board_info[] = { { I2C_BOARD_INFO("tps65010", 0x48), @@ -356,6 +357,7 @@ static struct i2c_board_info __initdata h2_i2c_board_info[] = { * - ... etc */ }; +#endif static void __init h2_init_smc91x(void) { @@ -467,8 +469,10 @@ static void __init h2_init(void) if (gpio_request(58, "tps65010") == 0) gpio_direction_input(58); +#ifdef CONFIG_I2C_BOARDINFO i2c_register_board_info(1, h2_i2c_board_info, ARRAY_SIZE(h2_i2c_board_info)); +#endif } static void __init h2_map_io(void)