diff options
author | Roland Stigge <stigge@antcom.de> | 2012-09-03 10:14:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-06 01:44:10 +0200 |
commit | b4b8482690d97ea5421acf71e9e397fe0c5a25b8 (patch) | |
tree | 79ea09077400fbe684e9ca99f516837595af80f9 /drivers/spi/spi-sh-hspi.c | |
parent | spi: spi-tle62x0: Use module_spi_driver macro (diff) | |
download | linux-b4b8482690d97ea5421acf71e9e397fe0c5a25b8.tar.xz linux-b4b8482690d97ea5421acf71e9e397fe0c5a25b8.zip |
spi/pl022: Fix chipselects pointer computation
The new chip select handling via GPIO introduced a pointer computation bug:
(int *) pl022 + sizeof(struct pl022)
doesn't point to the data immediately after the actual struct pl022 (as was
intended) but to a multiple of bytes after it because of the (int *) type.
Replacing the kludgy pointer arithmetic with managed memory allocation for the
chip selects.
Reported-by: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Signed-off-by: Roland Stigge <stigge@antcom.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
0 files changed, 0 insertions, 0 deletions