]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ARM: ep93xx: edb93xx: register audio platform device
authorMika Westerberg <mika.westerberg@iki.fi>
Sun, 11 Sep 2011 09:28:54 +0000 (12:28 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 16 Sep 2011 09:11:12 +0000 (10:11 +0100)
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>
arch/arm/mach-ep93xx/edb93xx.c

index 9969bb115f602d915330b0ebdca3c683862d7269..8dc51e464a4e0f16536db3debe38023db0fd21d4 100644 (file)
@@ -159,6 +159,11 @@ static void __init edb93xx_register_spi(void)
 /*************************************************************************
  * EDB93xx I2S
  *************************************************************************/
+static struct platform_device edb93xx_audio_device = {
+       .name           = "edb93xx-audio",
+       .id             = -1,
+};
+
 static int __init edb93xx_has_audio(void)
 {
        return (machine_is_edb9301() || machine_is_edb9302() ||
@@ -170,6 +175,7 @@ static void __init edb93xx_register_i2s(void)
 {
        if (edb93xx_has_audio()) {
                ep93xx_register_i2s();
+               platform_device_register(&edb93xx_audio_device);
        }
 }