diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 5c5315ba129b..89a8698cd6ed 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "mux.h" | 37 | #include "mux.h" |
38 | #include "control.h" | 38 | #include "control.h" |
39 | #include "devices.h" | 39 | #include "devices.h" |
40 | #include "display.h" | ||
40 | 41 | ||
41 | #define L3_MODULES_MAX_LEN 12 | 42 | #define L3_MODULES_MAX_LEN 12 |
42 | #define L3_MODULES 3 | 43 | #define L3_MODULES 3 |
@@ -466,13 +467,13 @@ static struct platform_device omap_vout_device = { | |||
466 | .resource = &omap_vout_resource[0], | 467 | .resource = &omap_vout_resource[0], |
467 | .id = -1, | 468 | .id = -1, |
468 | }; | 469 | }; |
469 | static void omap_init_vout(void) | 470 | |
471 | int __init omap_init_vout(void) | ||
470 | { | 472 | { |
471 | if (platform_device_register(&omap_vout_device) < 0) | 473 | return platform_device_register(&omap_vout_device); |
472 | printk(KERN_ERR "Unable to register OMAP-VOUT device\n"); | ||
473 | } | 474 | } |
474 | #else | 475 | #else |
475 | static inline void omap_init_vout(void) {} | 476 | int __init omap_init_vout(void) { return 0; } |
476 | #endif | 477 | #endif |
477 | 478 | ||
478 | #if IS_ENABLED(CONFIG_WL12XX) | 479 | #if IS_ENABLED(CONFIG_WL12XX) |
@@ -536,7 +537,6 @@ static int __init omap2_init_devices(void) | |||
536 | omap_init_wl12xx_of(); | 537 | omap_init_wl12xx_of(); |
537 | } | 538 | } |
538 | omap_init_sti(); | 539 | omap_init_sti(); |
539 | omap_init_vout(); | ||
540 | 540 | ||
541 | return 0; | 541 | return 0; |
542 | } | 542 | } |