]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: sirf: replace BUG condition by error code for unsupported transfer
authorQipan Li <Qipan.Li@csr.com>
Mon, 27 Apr 2015 09:22:28 +0000 (09:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 19:53:28 +0000 (20:53 +0100)
commitf08654a2b582b4e48e8a4a3d2c5c98832adc4387
tree1a23f77e44c2c256f0fcbdc61c094610c37e1a49
parentb787f68c36d49bb1d9236f403813641efa74a031
spi: sirf: replace BUG condition by error code for unsupported transfer

return error for unsupported bits-per-word format, BUG() is not right
for this scenerios as we are not an ASSERT but an error handler.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <baohua.song@csr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sirf.c