ASoC: omap-mcpdm: Remove useless ressource get.
authorSebastien Guiriec <s-guiriec@ti.com>
Mon, 11 Feb 2013 13:02:42 +0000 (14:02 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Feb 2013 16:55:54 +0000 (16:55 +0000)
Remove unused memory ressource get from McPDM driver.

Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcpdm.c

index 2fe8be20945278dc04cf23e22ef112abbf746383..5ca11bdac21e3b8b7d37ba1ee1978c6cf477cb15 100644 (file)
@@ -449,10 +449,6 @@ static int asoc_mcpdm_probe(struct platform_device *pdev)
        omap_mcpdm_dai_dma_params[0].port_addr = res->start + MCPDM_REG_DN_DATA;
        omap_mcpdm_dai_dma_params[1].port_addr = res->start + MCPDM_REG_UP_DATA;
 
-       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (res == NULL)
-               return -ENOMEM;
-
        res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "dn_link");
        if (!res)
                return -ENODEV;