ASoC: pxa2xx: fixup multi-platform AC'97 build failures
authorKevin Hilman <khilman@linaro.org>
Fri, 28 Jun 2013 18:17:48 +0000 (11:17 -0700)
committerMark Brown <broonie@linaro.org>
Sat, 29 Jun 2013 12:24:29 +0000 (13:24 +0100)
commit b047e1cc (ASoC: ac97: Support multi-platform AC'97) introduced
some build failures for the pxa2xx-ac97 support, fix them.

Cc: Mark Brown <broonie@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-ac97.h

index a3c22ba..1475515 100644 (file)
@@ -238,6 +238,8 @@ static const struct snd_soc_component_driver pxa_ac97_component = {
 
 static int pxa2xx_ac97_dev_probe(struct platform_device *pdev)
 {
+       int ret;
+
        if (pdev->id != -1) {
                dev_err(&pdev->dev, "PXA2xx has only one AC97 port.\n");
                return -ENXIO;
index eda891e..a49c21b 100644 (file)
@@ -14,7 +14,4 @@
 #define PXA2XX_DAI_AC97_AUX            1
 #define PXA2XX_DAI_AC97_MIC            2
 
-/* platform data */
-extern struct snd_ac97_bus_ops pxa2xx_ac97_ops;
-
 #endif