diff options
Diffstat (limited to 'arch/arm/mach-omap1/devices.c')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index dcd8ddbec2bb..51387a447cce 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -31,6 +31,22 @@ | |||
31 | #include "common.h" | 31 | #include "common.h" |
32 | #include "clock.h" | 32 | #include "clock.h" |
33 | 33 | ||
34 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) | ||
35 | |||
36 | static struct platform_device omap_pcm = { | ||
37 | .name = "omap-pcm-audio", | ||
38 | .id = -1, | ||
39 | }; | ||
40 | |||
41 | static void omap_init_audio(void) | ||
42 | { | ||
43 | platform_device_register(&omap_pcm); | ||
44 | } | ||
45 | |||
46 | #else | ||
47 | static inline void omap_init_audio(void) {} | ||
48 | #endif | ||
49 | |||
34 | /*-------------------------------------------------------------------------*/ | 50 | /*-------------------------------------------------------------------------*/ |
35 | 51 | ||
36 | #if defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE) | 52 | #if defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE) |
@@ -242,24 +258,6 @@ void __init omap1_camera_init(void *info) | |||
242 | 258 | ||
243 | static inline void omap_init_sti(void) {} | 259 | static inline void omap_init_sti(void) {} |
244 | 260 | ||
245 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) | ||
246 | |||
247 | static struct platform_device omap_pcm = { | ||
248 | .name = "omap-pcm-audio", | ||
249 | .id = -1, | ||
250 | }; | ||
251 | |||
252 | static void omap_init_audio(void) | ||
253 | { | ||
254 | platform_device_register(&omap_pcm); | ||
255 | } | ||
256 | |||
257 | #else | ||
258 | static inline void omap_init_audio(void) {} | ||
259 | #endif | ||
260 | |||
261 | /*-------------------------------------------------------------------------*/ | ||
262 | |||
263 | /* | 261 | /* |
264 | * This gets called after board-specific INIT_MACHINE, and initializes most | 262 | * This gets called after board-specific INIT_MACHINE, and initializes most |
265 | * on-chip peripherals accessible on this board (except for few like USB): | 263 | * on-chip peripherals accessible on this board (except for few like USB): |
@@ -292,11 +290,11 @@ static int __init omap1_init_devices(void) | |||
292 | * in alphabetical order so they're easier to sort through. | 290 | * in alphabetical order so they're easier to sort through. |
293 | */ | 291 | */ |
294 | 292 | ||
293 | omap_init_audio(); | ||
295 | omap_init_mbox(); | 294 | omap_init_mbox(); |
296 | omap_init_rtc(); | 295 | omap_init_rtc(); |
297 | omap_init_spi100k(); | 296 | omap_init_spi100k(); |
298 | omap_init_sti(); | 297 | omap_init_sti(); |
299 | omap_init_audio(); | ||
300 | 298 | ||
301 | return 0; | 299 | return 0; |
302 | } | 300 | } |