aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index a7bc4ce81e19..1afb50d6d636 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -67,28 +67,6 @@ static int __init omap3_l3_init(void)
67} 67}
68omap_postcore_initcall(omap3_l3_init); 68omap_postcore_initcall(omap3_l3_init);
69 69
70#if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
71
72static struct resource omap2cam_resources[] = {
73 {
74 .start = OMAP24XX_CAMERA_BASE,
75 .end = OMAP24XX_CAMERA_BASE + 0xfff,
76 .flags = IORESOURCE_MEM,
77 },
78 {
79 .start = 24 + OMAP_INTC_START,
80 .flags = IORESOURCE_IRQ,
81 }
82};
83
84static struct platform_device omap2cam_device = {
85 .name = "omap24xxcam",
86 .id = -1,
87 .num_resources = ARRAY_SIZE(omap2cam_resources),
88 .resource = omap2cam_resources,
89};
90#endif
91
92#if defined(CONFIG_IOMMU_API) 70#if defined(CONFIG_IOMMU_API)
93 71
94#include <linux/platform_data/iommu-omap.h> 72#include <linux/platform_data/iommu-omap.h>
@@ -211,14 +189,6 @@ int omap3_init_camera(struct isp_platform_data *pdata)
211 189
212#endif 190#endif
213 191
214static inline void omap_init_camera(void)
215{
216#if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
217 if (cpu_is_omap24xx())
218 platform_device_register(&omap2cam_device);
219#endif
220}
221
222#if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) 192#if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE)
223static inline void __init omap_init_mbox(void) 193static inline void __init omap_init_mbox(void)
224{ 194{
@@ -397,7 +367,6 @@ static int __init omap2_init_devices(void)
397 * in alphabetical order so they're easier to sort through. 367 * in alphabetical order so they're easier to sort through.
398 */ 368 */
399 omap_init_audio(); 369 omap_init_audio();
400 omap_init_camera();
401 /* If dtb is there, the devices will be created dynamically */ 370 /* If dtb is there, the devices will be created dynamically */
402 if (!of_have_populated_dt()) { 371 if (!of_have_populated_dt()) {
403 omap_init_mbox(); 372 omap_init_mbox();