diff options
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 324f02bf8a51..1b623a06cdcd 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -101,28 +101,6 @@ static int __init omap4_l3_init(void) | |||
101 | } | 101 | } |
102 | omap_postcore_initcall(omap4_l3_init); | 102 | omap_postcore_initcall(omap4_l3_init); |
103 | 103 | ||
104 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) | ||
105 | |||
106 | static struct resource omap2cam_resources[] = { | ||
107 | { | ||
108 | .start = OMAP24XX_CAMERA_BASE, | ||
109 | .end = OMAP24XX_CAMERA_BASE + 0xfff, | ||
110 | .flags = IORESOURCE_MEM, | ||
111 | }, | ||
112 | { | ||
113 | .start = 24 + OMAP_INTC_START, | ||
114 | .flags = IORESOURCE_IRQ, | ||
115 | } | ||
116 | }; | ||
117 | |||
118 | static struct platform_device omap2cam_device = { | ||
119 | .name = "omap24xxcam", | ||
120 | .id = -1, | ||
121 | .num_resources = ARRAY_SIZE(omap2cam_resources), | ||
122 | .resource = omap2cam_resources, | ||
123 | }; | ||
124 | #endif | ||
125 | |||
126 | #if defined(CONFIG_IOMMU_API) | 104 | #if defined(CONFIG_IOMMU_API) |
127 | 105 | ||
128 | #include <linux/platform_data/iommu-omap.h> | 106 | #include <linux/platform_data/iommu-omap.h> |
@@ -245,14 +223,6 @@ int omap3_init_camera(struct isp_platform_data *pdata) | |||
245 | 223 | ||
246 | #endif | 224 | #endif |
247 | 225 | ||
248 | static inline void omap_init_camera(void) | ||
249 | { | ||
250 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) | ||
251 | if (cpu_is_omap24xx()) | ||
252 | platform_device_register(&omap2cam_device); | ||
253 | #endif | ||
254 | } | ||
255 | |||
256 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) | 226 | #if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) |
257 | static inline void __init omap_init_mbox(void) | 227 | static inline void __init omap_init_mbox(void) |
258 | { | 228 | { |
@@ -431,7 +401,6 @@ static int __init omap2_init_devices(void) | |||
431 | * in alphabetical order so they're easier to sort through. | 401 | * in alphabetical order so they're easier to sort through. |
432 | */ | 402 | */ |
433 | omap_init_audio(); | 403 | omap_init_audio(); |
434 | omap_init_camera(); | ||
435 | /* If dtb is there, the devices will be created dynamically */ | 404 | /* If dtb is there, the devices will be created dynamically */ |
436 | if (!of_have_populated_dt()) { | 405 | if (!of_have_populated_dt()) { |
437 | omap_init_mbox(); | 406 | omap_init_mbox(); |