spi: omap2-mcspi: Fix transfers if DMADEVICES is not set
authorTony Lindgren <tony@atomide.com>
Sat, 13 Apr 2013 00:25:07 +0000 (17:25 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 16:10:59 +0000 (17:10 +0100)
commitddc5cdf161bce3d5191e7e8b84b7af5ad621a531
treeaadb2b8dda6fb3d8712f8a405d79a972442275f8
parent788437273fa8b824810ea9a23f7ed4d7fdb2949a
spi: omap2-mcspi: Fix transfers if DMADEVICES is not set

Selecting CONFIG_DMADEVICES is optional, and we must
be able to continue even without DMA. Otherwise things
like omap4430sdp nfsroot will fail if DMA is not
selected.

Note that the driver already supports PIO mode, but
we fail to fall back to PIO if requesting DMA channels
fails.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-omap2-mcspi.c