dma/imx-sdma: use num_events to validate event_id0
authorRichard Zhao <richard.zhao@linaro.org>
Fri, 13 Jan 2012 03:10:00 +0000 (11:10 +0800)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 31 Jan 2012 03:33:16 +0000 (09:03 +0530)
commitb78bd91f47b28ba1290a7eb95d8cf48a357e1b90
treed333a3afcb395e8855ed9ddd8265ff07feabf51a
parentc2c744d3aa48f845626131176772bae2a3c9d5bc
dma/imx-sdma: use num_events to validate event_id0

event number is not always 32. use num_events for checking instead.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/imx-sdma.c