aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/devices.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 6fd92eb97048..145c8f0f6597 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -38,7 +38,7 @@
38 38
39#if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) 39#if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
40 40
41static struct resource cam_resources[] = { 41static struct resource omap2cam_resources[] = {
42 { 42 {
43 .start = OMAP24XX_CAMERA_BASE, 43 .start = OMAP24XX_CAMERA_BASE,
44 .end = OMAP24XX_CAMERA_BASE + 0xfff, 44 .end = OMAP24XX_CAMERA_BASE + 0xfff,
@@ -50,21 +50,12 @@ static struct resource cam_resources[] = {
50 } 50 }
51}; 51};
52 52
53static struct platform_device omap_cam_device = { 53static struct platform_device omap2cam_device = {
54 .name = "omap24xxcam", 54 .name = "omap24xxcam",
55 .id = -1, 55 .id = -1,
56 .num_resources = ARRAY_SIZE(cam_resources), 56 .num_resources = ARRAY_SIZE(omap2cam_resources),
57 .resource = cam_resources, 57 .resource = omap2cam_resources,
58}; 58};
59
60static inline void omap_init_camera(void)
61{
62 platform_device_register(&omap_cam_device);
63}
64#else
65static inline void omap_init_camera(void)
66{
67}
68#endif 59#endif
69 60
70static struct resource omap3isp_resources[] = { 61static struct resource omap3isp_resources[] = {
@@ -157,6 +148,14 @@ int omap3_init_camera(struct isp_platform_data *pdata)
157 return platform_device_register(&omap3isp_device); 148 return platform_device_register(&omap3isp_device);
158} 149}
159 150
151static inline void omap_init_camera(void)
152{
153#if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
154 if (cpu_is_omap24xx())
155 platform_device_register(&omap2cam_device);
156#endif
157}
158
160#if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE) 159#if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE)
161 160
162#define MBOX_REG_SIZE 0x120 161#define MBOX_REG_SIZE 0x120