From: Sebastien Guiriec Date: Mon, 11 Feb 2013 13:02:42 +0000 (+0100) Subject: ASoC: omap-mcpdm: Remove useless ressource get. X-Git-Tag: v3.9-rc1~52^2~16^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41c4d554e75ccbdb043878049cf2671dd49598a5;p=platform%2Fkernel%2Flinux-exynos.git ASoC: omap-mcpdm: Remove useless ressource get. Remove unused memory ressource get from McPDM driver. Signed-off-by: Sebastien Guiriec Acked-by: Peter Ujfalusi Signed-off-by: Mark Brown --- diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index 2fe8be2..5ca11bd 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c @@ -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;