6 Aug
2010
6 Aug
'10
10:08 a.m.
On Fri, 6 Aug 2010 10:39:15 +0300 Peter Ujfalusi peter.ujfalusi@nokia.com wrote:
static void omap_init_audio(void) { platform_device_register(&omap_mcbsp1); platform_device_register(&omap_mcbsp2); +#ifdef OMAP_HAS_4_MCBSP_PORTS platform_device_register(&omap_mcbsp3); platform_device_register(&omap_mcbsp4); +#endif +#ifdef OMAP_HAS_5_MCBSP_PORTS platform_device_register(&omap_mcbsp5); +#endif platform_device_register(&omap_pcm); }
This must be done at runtime since we can have multi omap builds now. So use cpu_is_omapxxx instead of conditional compilation. Simplifies patch too :-)
--
Jarkko