aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/devices.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 2271b9bd1f50..10f3a3c58cc0 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -786,6 +786,33 @@ static inline void omap_hdq_init(void)
786static inline void omap_hdq_init(void) {} 786static inline void omap_hdq_init(void) {}
787#endif 787#endif
788 788
789/*---------------------------------------------------------------------------*/
790
791#if defined(CONFIG_VIDEO_OMAP2_VOUT) || \
792 defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE)
793#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
794static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = {
795};
796#else
797static struct resource omap_vout_resource[2] = {
798};
799#endif
800
801static struct platform_device omap_vout_device = {
802 .name = "omap_vout",
803 .num_resources = ARRAY_SIZE(omap_vout_resource),
804 .resource = &omap_vout_resource[0],
805 .id = -1,
806};
807static void omap_init_vout(void)
808{
809 if (platform_device_register(&omap_vout_device) < 0)
810 printk(KERN_ERR "Unable to register OMAP-VOUT device\n");
811}
812#else
813static inline void omap_init_vout(void) {}
814#endif
815
789/*-------------------------------------------------------------------------*/ 816/*-------------------------------------------------------------------------*/
790 817
791static int __init omap2_init_devices(void) 818static int __init omap2_init_devices(void)
@@ -800,6 +827,7 @@ static int __init omap2_init_devices(void)
800 omap_hdq_init(); 827 omap_hdq_init();
801 omap_init_sti(); 828 omap_init_sti();
802 omap_init_sha1_md5(); 829 omap_init_sha1_md5();
830 omap_init_vout();
803 831
804 return 0; 832 return 0;
805} 833}