From: Wolfram Sang Date: Fri, 25 Mar 2011 15:51:46 +0000 (+0100) Subject: ASoC: imx: remove superfluous code in imx-ssi.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b573c95d7bd1cf28c69ab4e0255cd272d214482;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ASoC: imx: remove superfluous code in imx-ssi.c Checking if IMX_SSI_DMA is set and then set it again is useless. Signed-off-by: Wolfram Sang Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c index bc92ec62000..c331d65587d 100644 --- a/sound/soc/imx/imx-ssi.c +++ b/sound/soc/imx/imx-ssi.c @@ -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);