spi: davinci: simplify poll mode transfers
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Mon, 23 Aug 2010 11:09:19 +0000 (16:39 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:30 +0000 (18:38 +0530)
Use the fact that the get_tx and get_rx can now cope with
NULL buffer pointers to simplify the poll mode transfer
code.

While at it, check for SPI errors every transfer rather than
at the end of the whole transfer.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

No differences found