OSDN Git Service

spi: pl022: use DMA by default when probing from DT
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 18:54:37 +0000 (20:54 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 May 2013 14:38:47 +0000 (15:38 +0100)
commit5b547a75405184d54d148132b9e4600516c49c6e
tree35c2d4e2c1781a66da5ba81a63083ba089541414
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
spi: pl022: use DMA by default when probing from DT

In the past we controlled the selection of DMA for a certain
host by a boolean switch in the platform data. Currently
there is no way to enable DMA on a PL022 probed from the
device tree. Let's default to trying to obtain DMA channels
in the DT case, and then we can always fail (and thus fall
back to PIO mode).

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pl022.c