dmaengine: ste_dma40: Rectify incorrect configuration validation checking
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:31:55 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:10:56 +0000 (21:10 +0200)
commit4f8fc46c797015dddc1d4c76e1b485b57373683b
tree2671a167f38e94918f0e0dbac5c8b0bd7296bb39
parent29027a1e1121a1c9c5e726cf09dc2e9789a282f3
dmaengine: ste_dma40: Rectify incorrect configuration validation checking

If we compare an event's group (dev_type / 16) with STEDMA40_DEV_DST_MEMORY
(-1), the only way we'd obtain a positive result is if we passed -16 as a
device type, which is unfeasible. Instead, it would be much more sane to
compare STEDMA40_DEV_DST_MEMORY against the raw dev_type in order to expect
the expected result.

Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/dma/ste_dma40.c