Skip to contentSkip to conversation

ASoC: omap-mcpdm: Remove useless ressource get.

PATCH Applied Sebastien Guiriec 3 participants 3 messages Feb 11, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: omap-mcpdm: Remove useless ressource get.

Remove unused memory ressource get from McPDM driver.

---
 sound/soc/omap/omap-mcpdm.c |    4 ----
 1 file changed, 4 deletions(-)
sound/soc/omap/omap-mcpdm.c +0 -4
index 2fe8be2..5ca11bd 100644
@@ -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;
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw

Hi Sebastien,

Quoted 1 line · Sebastien Guiriec

Remove unused memory ressource get from McPDM driver.

I have no idea how this remain in the driver ;)

Quoted 21 lines
---
 sound/soc/omap/omap-mcpdm.c |    4 ----
 1 file changed, 4 deletions(-)
sound/soc/omap/omap-mcpdm.c +0 -4
index 2fe8be2..5ca11bd 100644
@@ -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;
Signature · 5 lines
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html