ASoC: imx: remove superfluous code in imx-ssi.c
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 25 Mar 2011 15:51:46 +0000 (16:51 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 26 Mar 2011 17:43:54 +0000 (17:43 +0000)
Checking if IMX_SSI_DMA is set and then set it again is useless.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-ssi.c

index bc92ec620004f16a82feb202ddfc30f57bdf8c8e..c331d65587d8245f53cf226d8267020b2c8d2616 100644 (file)
@@ -667,12 +667,6 @@ static int imx_ssi_probe(struct platform_device *pdev)
        if (res)
                ssi->dma_params_rx.dma = res->start;
 
-       if ((cpu_is_mx27() || cpu_is_mx21()) &&
-                       !(ssi->flags & IMX_SSI_USE_AC97) &&
-                       (ssi->flags & IMX_SSI_DMA)) {
-               ssi->flags |= IMX_SSI_DMA;
-       }
-
        platform_set_drvdata(pdev, ssi);
 
        ret = snd_soc_register_dai(&pdev->dev, dai);