spi/pl022: Explicitly truncate large bitmask
authorMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 16:47:38 +0000 (17:47 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 17:24:37 +0000 (18:24 +0100)
commitd555ea05f9d8ebf567eaa6b4e4cb5776aacf2940
tree04c2d993a28d78b78603cb67a85e70e9e8916979
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi/pl022: Explicitly truncate large bitmask

When building on 64 bit architectures the use of bitwise negation generates
constants larger than 32 bits which won't fit in u32s used to represent
32 bit register values on the device. Explicitly cast to let the compiler
know that the higher bits are not significant and can be discarded.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pl022.c