Skip to content

Commit

Permalink
ASoC: mpc5200_psc_ac97: Remove unused on-stack snd_ac97 device
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
larsclausen authored and broonie committed Nov 18, 2014
1 parent 92eb0d5 commit 35480e3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/fsl/mpc5200_psc_ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 35480e3

Please sign in to comment.