[PATCH 8/8] mmc: spi: Add DMA support into SPI driver

Fabio Estevam festevam at gmail.com
Fri Jun 29 09:49:23 EDT 2012


Hi Marek,

On 6/29/12, Marek Vasut <marex at denx.de> wrote:

>  	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	if (!iores)
> +	dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
> +	irq_err = platform_get_irq(pdev, 0);
> +	irq_dma = platform_get_irq(pdev, 1);
> +	if (!iores || irq_err < 0 || irq_dma < 0)

Shouldn't you check for dmares < 0 here too?



More information about the linux-arm-kernel mailing list