diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 20:47:27 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 20:47:27 -0500 |
| commit | 6e03db2ba17b5d32431b4c2012e6a41153318a90 (patch) | |
| tree | 001d90ae19ec62d7f34df127a36783ef78e5bc75 | |
| parent | e032d80774315869aa2285b217fdbbfed86c0b49 (diff) | |
| parent | 1a51a0ce174ddc0b0c11b6a0dbd179d95020e80b (diff) | |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
ARM: OMAP3: fix build on !CONFIG_IOMMU_API
| -rw-r--r-- | arch/arm/mach-omap2/devices.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 46dfd1ae8f71..0b510ad01a00 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | #include <plat/board.h> | 28 | #include <plat/board.h> |
| 29 | #include <plat/mcbsp.h> | 29 | #include <plat/mcbsp.h> |
| 30 | #include <plat/mmc.h> | 30 | #include <plat/mmc.h> |
| 31 | #include <plat/iommu.h> | ||
| 32 | #include <plat/dma.h> | 31 | #include <plat/dma.h> |
| 33 | #include <plat/omap_hwmod.h> | 32 | #include <plat/omap_hwmod.h> |
| 34 | #include <plat/omap_device.h> | 33 | #include <plat/omap_device.h> |
| @@ -128,6 +127,10 @@ static struct platform_device omap2cam_device = { | |||
| 128 | }; | 127 | }; |
| 129 | #endif | 128 | #endif |
| 130 | 129 | ||
| 130 | #if defined(CONFIG_IOMMU_API) | ||
| 131 | |||
| 132 | #include <plat/iommu.h> | ||
| 133 | |||
| 131 | static struct resource omap3isp_resources[] = { | 134 | static struct resource omap3isp_resources[] = { |
| 132 | { | 135 | { |
| 133 | .start = OMAP3430_ISP_BASE, | 136 | .start = OMAP3430_ISP_BASE, |
| @@ -224,6 +227,15 @@ int omap3_init_camera(struct isp_platform_data *pdata) | |||
| 224 | return platform_device_register(&omap3isp_device); | 227 | return platform_device_register(&omap3isp_device); |
| 225 | } | 228 | } |
| 226 | 229 | ||
| 230 | #else /* !CONFIG_IOMMU_API */ | ||
| 231 | |||
| 232 | int omap3_init_camera(struct isp_platform_data *pdata) | ||
| 233 | { | ||
| 234 | return 0; | ||
| 235 | } | ||
| 236 | |||
| 237 | #endif | ||
| 238 | |||
| 227 | static inline void omap_init_camera(void) | 239 | static inline void omap_init_camera(void) |
| 228 | { | 240 | { |
| 229 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) | 241 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) |
