Re: [PATCH 5/7] ARM: EXYNOS4: Use generic DMA PL330 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kukjin Kim <kgene.kim <at> samsung.com> writes:

> +struct dma_pl330_platdata exynos4_pdma0_pdata = {
> +	.nr_valid_peri = 32,
> +	.peri = pdma0_peri,
>  };

(snip)

> +struct dma_pl330_platdata exynos4_pdma1_pdata = {
> +	.nr_valid_peri = 32,
> +	.peri = pdma1_peri,
>  };
> 

I think you'd better use ARRAY_SIZE(peri) instead 32 for nr_valid_peri
because dma channels can be sparse.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux