aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/snappercl15.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@iki.fi>2011-09-11 05:28:55 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-16 05:11:17 -0400
commit989b79079c06ead9b46569cf6d7259da44888778 (patch)
tree925d2c7f0b9a58571a823972b1b239b89e71abfb /arch/arm/mach-ep93xx/snappercl15.c
parent075b20b0475b1289c14ecbe0cc26754f45b7d7b6 (diff)
ARM: ep93xx: snappercl15: register audio platform device
Since the ASoC machine driver is now a platform driver we need to register a matching platform device. Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi> Reviewed-by: Ryan Mallon <rmallon@gmail.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-ep93xx/snappercl15.c')
-rw-r--r--arch/arm/mach-ep93xx/snappercl15.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-ep93xx/snappercl15.c b/arch/arm/mach-ep93xx/snappercl15.c
index 2e9c614757e4..edd75e37f4de 100644
--- a/arch/arm/mach-ep93xx/snappercl15.c
+++ b/arch/arm/mach-ep93xx/snappercl15.c
@@ -150,6 +150,17 @@ static struct ep93xxfb_mach_info __initdata snappercl15_fb_info = {
150 .bpp = 16, 150 .bpp = 16,
151}; 151};
152 152
153static struct platform_device snappercl15_audio_device = {
154 .name = "snappercl15-audio",
155 .id = -1,
156};
157
158static void __init snappercl15_register_audio(void)
159{
160 ep93xx_register_i2s();
161 platform_device_register(&snappercl15_audio_device);
162}
163
153static void __init snappercl15_init_machine(void) 164static void __init snappercl15_init_machine(void)
154{ 165{
155 ep93xx_init_devices(); 166 ep93xx_init_devices();
@@ -157,7 +168,7 @@ static void __init snappercl15_init_machine(void)
157 ep93xx_register_i2c(&snappercl15_i2c_gpio_data, snappercl15_i2c_data, 168 ep93xx_register_i2c(&snappercl15_i2c_gpio_data, snappercl15_i2c_data,
158 ARRAY_SIZE(snappercl15_i2c_data)); 169 ARRAY_SIZE(snappercl15_i2c_data));
159 ep93xx_register_fb(&snappercl15_fb_info); 170 ep93xx_register_fb(&snappercl15_fb_info);
160 ep93xx_register_i2s(); 171 snappercl15_register_audio();
161 platform_device_register(&snappercl15_nand_device); 172 platform_device_register(&snappercl15_nand_device);
162} 173}
163 174