]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: initialize DMA channels to -1 to prevent inadvertent match
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 13 Jan 2014 09:17:04 +0000 (11:17 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 13 Jan 2014 12:39:19 +0000 (12:39 +0000)
commita88853391e12ff2d89c817952b2ff46d3a7175d4
tree6654f08957d355235eff55a8c36afde2745e1e21
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
spi/pxa2xx: initialize DMA channels to -1 to prevent inadvertent match

Commit 8cf0cc63052c (spi/pxa2xx: convert to dma_request_slave_channel_compat())
converted the driver to use ACPI provided DMA helpers but it forgot to
initialize the platform data for the channels to -1. Failing to do so will
result inadvertent match in the filter function because 0 is a valid
channel number.

Prevent this from happening by initializing both platform data channels
correctly to -1.

Fixes: 8cf0cc63052c (spi/pxa2xx: convert to dma_request_slave_channel_compat())
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-pxa2xx.c