diff options
author | Mika Westerberg <mika.westerberg@iki.fi> | 2011-09-11 05:28:54 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-16 05:11:12 -0400 |
commit | 075b20b0475b1289c14ecbe0cc26754f45b7d7b6 (patch) | |
tree | 75038d88c4487f42a6f99044ff48aa5a4d4a5bcd | |
parent | e5063fe8ac218357a9804044bc17263993f0495d (diff) |
ARM: ep93xx: edb93xx: 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>
-rw-r--r-- | arch/arm/mach-ep93xx/edb93xx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c index 9969bb115f60..8dc51e464a4e 100644 --- a/arch/arm/mach-ep93xx/edb93xx.c +++ b/arch/arm/mach-ep93xx/edb93xx.c | |||
@@ -159,6 +159,11 @@ static void __init edb93xx_register_spi(void) | |||
159 | /************************************************************************* | 159 | /************************************************************************* |
160 | * EDB93xx I2S | 160 | * EDB93xx I2S |
161 | *************************************************************************/ | 161 | *************************************************************************/ |
162 | static struct platform_device edb93xx_audio_device = { | ||
163 | .name = "edb93xx-audio", | ||
164 | .id = -1, | ||
165 | }; | ||
166 | |||
162 | static int __init edb93xx_has_audio(void) | 167 | static int __init edb93xx_has_audio(void) |
163 | { | 168 | { |
164 | return (machine_is_edb9301() || machine_is_edb9302() || | 169 | return (machine_is_edb9301() || machine_is_edb9302() || |
@@ -170,6 +175,7 @@ static void __init edb93xx_register_i2s(void) | |||
170 | { | 175 | { |
171 | if (edb93xx_has_audio()) { | 176 | if (edb93xx_has_audio()) { |
172 | ep93xx_register_i2s(); | 177 | ep93xx_register_i2s(); |
178 | platform_device_register(&edb93xx_audio_device); | ||
173 | } | 179 | } |
174 | } | 180 | } |
175 | 181 | ||