spi: nuc900: Fix setting multiple bits settings in register
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Mar 2014 05:24:14 +0000 (13:24 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 21 Mar 2014 17:49:04 +0000 (17:49 +0000)
commitfb534f10755954827a4b71b9a21f9b5fa93707a9
treec61737b35f0d2ccb815969be694e73d27a8aa4f4
parent8120ff8c48396a75cc9e5fa26a7a476479003fab
spi: nuc900: Fix setting multiple bits settings in register

The correct way to set multiple bits settings is always clear these
bit fields before set new settings.

Current code does not cause problem because the reset value of these
bit fields are 0, and these settings only set once during probe.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-nuc900.c