arm:omap:am33xx: Don't register McBSP
[sitara-epos/sitara-epos-kernel.git] / arch / arm / mach-omap2 / devices.c
index 8d43913f10d25bb9bd3b525c92740a70eb9440c6..e896e7b3885e9812e700af863dfb53757b734929 100644 (file)
@@ -404,14 +404,16 @@ OMAP_MCBSP_PLATFORM_DEVICE(5);
 
 static void omap_init_audio(void)
 {
+       if (cpu_is_am33xx())
+               return;
+
        platform_device_register(&omap_mcbsp1);
        platform_device_register(&omap_mcbsp2);
-       if ((cpu_is_omap243x() || cpu_is_omap34xx() || cpu_is_omap44xx()) &&
-               !cpu_is_am33xx()) {
+       if (cpu_is_omap243x() || cpu_is_omap34xx() || cpu_is_omap44xx()) {
                platform_device_register(&omap_mcbsp3);
                platform_device_register(&omap_mcbsp4);
        }
-       if ((cpu_is_omap243x() || cpu_is_omap34xx()) && !cpu_is_am33xx())
+       if (cpu_is_omap243x() || cpu_is_omap34xx())
                platform_device_register(&omap_mcbsp5);
 
        platform_device_register(&omap_pcm);