[alsa-devel] [PATCH] ASoC: omap-mcpdm: Remove useless ressource get.

Peter Ujfalusi peter.ujfalusi at ti.com
Mon Feb 11 14:08:07 CET 2013


Hi Sebastien,

On 02/11/2013 02:02 PM, Sebastien Guiriec wrote:
> Remove unused memory ressource get from McPDM driver.

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

Acked-by: Peter Ujfalusi <peter.ujfalusi at ti.com>

> Signed-off-by: Sebastien Guiriec <s-guiriec at ti.com>
> ---
>  sound/soc/omap/omap-mcpdm.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> 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;
> 


-- 
Péter


More information about the Alsa-devel mailing list