ASoC: mpc5200_psc_ac97: Remove unused on-stack snd_ac97 device
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Nov 2014 21:41:43 +0000 (22:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Nov 2014 15:26:05 +0000 (15:26 +0000)
The mpc5200_psc_ac97 driver puts a snd_ac97 device on the stack in the
driver probe function, initializes the private data member of the device and
the never uses the device again. It should be safe to remove it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/mpc5200_psc_ac97.c

index 24eafa2cfbf4d78dac4aed28faa20d38ac352184..640801a60c128cacd83f8d0279e78a52492e0d45 100644 (file)
@@ -282,7 +282,6 @@ static const struct snd_soc_component_driver psc_ac97_component = {
 static int psc_ac97_of_probe(struct platform_device *op)
 {
        int rc;
-       struct snd_ac97 ac97;
        struct mpc52xx_psc __iomem *regs;
 
        rc = mpc5200_audio_dma_create(op);
@@ -304,7 +303,6 @@ static int psc_ac97_of_probe(struct platform_device *op)
 
        psc_dma = dev_get_drvdata(&op->dev);
        regs = psc_dma->psc_regs;
-       ac97.private_data = psc_dma;
 
        psc_dma->imr = 0;
        out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr);
This page took 0.030606 seconds and 5 git commands to generate.