aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/simone.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@iki.fi>2011-09-11 05:28:53 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-16 05:11:07 -0400
commite5063fe8ac218357a9804044bc17263993f0495d (patch)
treec81e176c8d83718354b883ffbd42ae696aa8d341 /arch/arm/mach-ep93xx/simone.c
parent62e4f7d1386f3e9c126fc7febc719d504b3e344b (diff)
ARM: ep93xx: simone: 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/simone.c')
-rw-r--r--arch/arm/mach-ep93xx/simone.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-ep93xx/simone.c b/arch/arm/mach-ep93xx/simone.c
index 8392e95d7cea..1445ce568cae 100644
--- a/arch/arm/mach-ep93xx/simone.c
+++ b/arch/arm/mach-ep93xx/simone.c
@@ -53,6 +53,17 @@ static struct i2c_board_info __initdata simone_i2c_board_info[] = {
53 }, 53 },
54}; 54};
55 55
56static struct platform_device simone_audio_device = {
57 .name = "simone-audio",
58 .id = -1,
59};
60
61static void __init simone_register_audio(void)
62{
63 ep93xx_register_ac97();
64 platform_device_register(&simone_audio_device);
65}
66
56static void __init simone_init_machine(void) 67static void __init simone_init_machine(void)
57{ 68{
58 ep93xx_init_devices(); 69 ep93xx_init_devices();
@@ -61,7 +72,7 @@ static void __init simone_init_machine(void)
61 ep93xx_register_fb(&simone_fb_info); 72 ep93xx_register_fb(&simone_fb_info);
62 ep93xx_register_i2c(&simone_i2c_gpio_data, simone_i2c_board_info, 73 ep93xx_register_i2c(&simone_i2c_gpio_data, simone_i2c_board_info,
63 ARRAY_SIZE(simone_i2c_board_info)); 74 ARRAY_SIZE(simone_i2c_board_info));
64 ep93xx_register_ac97(); 75 simone_register_audio();
65} 76}
66 77
67MACHINE_START(SIM_ONE, "Simplemachines Sim.One Board") 78MACHINE_START(SIM_ONE, "Simplemachines Sim.One Board")