From: Roland Stigge Date: Mon, 3 Sep 2012 08:14:29 +0000 (+0200) Subject: spi/pl022: Fix chipselects pointer computation X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~41^2~1^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4b8482690d97ea5421acf71e9e397fe0c5a25b8;p=pandora-kernel.git 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 Signed-off-by: Roland Stigge Reviewed-by: Linus Walleij Signed-off-by: Mark Brown --- Reading git-diff-tree failed