From: Magnus Damm Date: Tue, 24 May 2011 10:31:20 +0000 (+0000) Subject: dmaengine: shdma: Fix SH_DMAC_MAX_CHANNELS handling X-Git-Tag: v3.0-rc1~155^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300e5f97d2a32196cbe03104cd6ffe2af97d9338;p=pandora-kernel.git dmaengine: shdma: Fix SH_DMAC_MAX_CHANNELS handling Fix the shdma.c handing of SH_DMAC_MAX_CHANNELS to avoid overwriting the chan_irq[] and chan_flag[] arrays in the case of pdata->channel_num is larger than SH_DMAC_MAX_CHANNELS. With this patch applied up to SH_DMAC_MAX_CHANNELS will be used by the shdma.c driver. If more channels are available in the platform data the user will be notified on the console. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt --- Reading git-diff-tree failed