Roland Stigge b4b8482690 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>
2012-09-06 07:44:10 +08:00
..
2012-08-17 22:56:18 +01:00
2011-11-09 23:02:12 +08:00
2011-06-06 01:16:30 -06:00
2012-04-10 14:11:34 -06:00
2011-09-21 09:41:48 -06:00
2011-06-06 01:16:30 -06:00
2012-09-06 07:41:09 +08:00
2011-06-06 01:16:30 -06:00
2012-04-10 14:11:34 -06:00
2011-06-06 01:16:30 -06:00
2012-05-19 22:37:16 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00