From: Chen Gang Date: Fri, 11 Jan 2013 05:39:18 +0000 (+0800) Subject: ARM: OMAP: Fix the use of uninitialized dma_lch_count X-Git-Tag: omap-for-v3.9/fixes-non-critical-signed-v2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e78f96060fff8545d21360cfa5590e266a595bb9;p=pandora-kernel.git ARM: OMAP: Fix the use of uninitialized dma_lch_count 'omap_dma_reserve_channels' when used is suppose to be from command. so, it alreay has value before 1st call of omap_system_dma_probe. and it will never be changed again during running (not from ioctl). but 'dma_lch_count' is zero before 1st call of omap_system_dma_probe. so it will be failed for omap_dma_reserve_channels, when 1st call. so, need use 'd->lch_count' instead of 'dma_lch_count' for judging. Signed-off-by: Chen Gang Signed-off-by: Santosh Shilimkar Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed