1 From 860ff4be70242f2d2964e0d431d09231cbf6bfde Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Wed, 16 Jun 2010 09:45:46 +0200
4 Subject: [PATCH 12/75] ARM: OMAP3: make camera code build if MT9T111 is built as module or disabled
7 arch/arm/mach-omap2/board-omap3beagle.c | 4 +++-
8 1 files changed, 3 insertions(+), 1 deletions(-)
10 diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
11 index 97ccf04..3d4b0bc 100644
12 --- a/arch/arm/mach-omap2/board-omap3beagle.c
13 +++ b/arch/arm/mach-omap2/board-omap3beagle.c
14 @@ -71,7 +71,7 @@ static struct omap_opp * _omap35x_l3_rate_table = NULL;
15 static struct omap_opp * _omap37x_l3_rate_table = NULL;
16 #endif /* CONFIG_PM */
18 -#ifdef CONFIG_VIDEO_MT9T111
19 +#if defined(CONFIG_VIDEO_MT9T111) || defined(CONFIG_VIDEO_MT9T111_MODULE)
20 #include <media/v4l2-int-device.h>
21 #include <media/mt9t111.h>
22 extern struct mt9t111_platform_data mt9t111_pdata;
23 @@ -594,10 +594,12 @@ static struct i2c_board_info __initdata beagle_zippy_i2c2_boardinfo[] = {};
26 static struct i2c_board_info __initdata beagle_i2c2_boardinfo[] = {
27 +#if defined(CONFIG_VIDEO_MT9T111) || defined(CONFIG_VIDEO_MT9T111_MODULE)
29 I2C_BOARD_INFO("mt9t111", MT9T111_I2C_ADDR),
30 .platform_data = &mt9t111_pdata,
35 static int __init omap3_beagle_i2c_init(void)