From: Lars-Peter Clausen Date: Mon, 22 Apr 2013 08:33:32 +0000 (+0200) Subject: dma: of: Remove restriction that #dma-cells can't be 0 X-Git-Tag: v3.11-rc1~75^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff0e0f4f568e8d7593e0035c0c58067bcaf4ab07;p=pandora-kernel.git dma: of: Remove restriction that #dma-cells can't be 0 There is no sensible reason why #dma-cells shouldn't be allowed to be 0. It is completely up to the DMA controller how many additional parameters, besides the phandle, it needs to identify a channel. E.g. for DMA controller with only one channel or for DMA controllers which don't have a restriction on which channel can be used for which peripheral it completely legitimate to not require any additional parameters. Also fixes the following warning: drivers/dma/of-dma.c: In function 'of_dma_controller_register': drivers/dma/of-dma.c:67:7: warning: 'nbcells' may be used uninitialized in this function Signed-off-by: Lars-Peter Clausen Acked-by: Arnd Bergmann Signed-off-by: Vinod Koul --- Reading git-diff-tree failed