dmaengine: ste_dma40: Move rev error-check up to revision acquisition
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:32:08 +0000 (15:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:12:55 +0000 (21:12 +0200)
commit8b2fe9b6b310a6e5d68de648d6f0697227581d66
tree5b0de1364619adbcc1956693c09c30c9a41121da
parent8a59fed39577d7313921a59dba8cc1711ae90da5
dmaengine: ste_dma40: Move rev error-check up to revision acquisition

At the moment we fetch the hardware revision, then do some stuff, then
check whether the revision is correct and return in error if it's not.
Well we may as well check it as soon as we know what it is, so let's
move the check right up underneath where we acquire the version.

Acked-by: Vinod Koul <vnod.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