ASoC: switch over to use snd_soc_register_component() on pxa2xx ac97
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 21 Mar 2013 10:34:23 +0000 (03:34 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 21:57:28 +0000 (21:57 +0000)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/pxa2xx-ac97.c

index 88d2cc6a0ae2dd18af3f8f705fe46469892065d8..57ea8e6c54885372f7808376968b7f56783ef78a 100644 (file)
@@ -233,6 +233,10 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = {
 },
 };
 
+static const struct snd_soc_component_driver pxa_ac97_component = {
+       .name           = "pxa-ac97",
+};
+
 static int pxa2xx_ac97_dev_probe(struct platform_device *pdev)
 {
        if (pdev->id != -1) {
@@ -244,13 +248,13 @@ static int pxa2xx_ac97_dev_probe(struct platform_device *pdev)
         * driver to do interesting things with the clocking to get us up
         * and running.
         */
-       return snd_soc_register_dais(&pdev->dev, pxa_ac97_dai_driver,
-                       ARRAY_SIZE(pxa_ac97_dai_driver));
+       return snd_soc_register_component(&pdev->dev, &pxa_ac97_component,
+                                         pxa_ac97_dai_driver, ARRAY_SIZE(pxa_ac97_dai_driver));
 }
 
 static int pxa2xx_ac97_dev_remove(struct platform_device *pdev)
 {
-       snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(pxa_ac97_dai_driver));
+       snd_soc_unregister_component(&pdev->dev);
        return 0;
 }