]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7081c24d0d4952f2069a8ccd8e19aed715c02730
treea3905f23f2fa36fee4116c77c7b62e3466932ba6
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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