]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pl022: use DMA by default when probing from DT
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 17:46:40 +0000 (19:46 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 11:54:38 +0000 (13:54 +0200)
commit902e5ff6bdd9b3b1881b75bc549617b60042873b
tree4023a5cdecfa10958781eb595dcda56beb59a341
parentb102c0e167875c9990937c0e344042970f3d993a
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>
drivers/spi/spi-pl022.c