ARM: OMAP: twl-common: Add helper function to register the omap-twl4030 audio driver
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 14 Aug 2012 09:07:57 +0000 (12:07 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 15 Aug 2012 16:10:00 +0000 (17:10 +0100)
commit552d9dc316cfedd134ee882cd1ae24ca6934ffc0
tree5fac0a6b7b4027b09a07b8dc67906a35dfb9b9d0
parentfff8491c8b8cce5fc9190e025d1a665f2ee71a4f
ARM: OMAP: twl-common: Add helper function to register the omap-twl4030 audio driver

Since several OMAP3 based boards will be using the unified simple audio
driver it is better to not have duplicated code in the board files for this
purpose.
Board files can call omap_twl4030_audio_init(); to set up the needed device
for the audio support.

For example:
omap_twl4030_audio_init("omap3beagle", 26000000);

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-omap2/twl-common.c
arch/arm/mach-omap2/twl-common.h