spi/topcliff-pch: Fix DMA channel
authorAlexander Stein <alexander.stein@systec-electronic.com>
Wed, 19 Feb 2014 09:36:08 +0000 (10:36 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 19 Feb 2014 12:43:56 +0000 (21:43 +0900)
commit7611c7a5613f20ec2fb536c1d868d15045730bc0
treea3905f23f2fa36fee4116c77c7b62e3466932ba6
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi/topcliff-pch: Fix DMA channel

bus_num might be asigned dynamically to e.g. 32766. In this case the
calculated DMA channel based on SPI bus number is bogus. Use SPI channel
number instead for calculation.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-topcliff-pch.c