arm:lpc32xx:spi/pl022: fix dubious allocation staticize platform data
authorLinus Walleij <linus.walleij@stericsson.com>
Tue, 10 Jan 2012 10:24:42 +0000 (10:24 +0000)
committerBangaragiri G <bangaragiri.g@nxp.com>
Tue, 10 Jan 2012 10:24:42 +0000 (10:24 +0000)
commita867a7c6c6a73523237278d64facfa572caeed51
tree3c67cfd2fc53ea45919e9c7e0a7caf77c6c1c3ec
parentf2988938cc309e95bac9b4162a4769be47f37064
arm:lpc32xx:spi/pl022: fix dubious allocation staticize platform data

This removes some dubious allocation of a local chipinfo struct
in favor of a constant preset, tagging that one const revealed
further problems with platform data being modified so fixed up
these too.

Reported-by: Virupax Sadashivpetimath
   <virupax.sadashivpetimath@stericsson.com>

Signed-off-by: Bangaragiri G <bangaragiri.g@nxp.com>
drivers/spi/amba-pl022.c