spi/pl022: fix dubious allocation staticize platform data
authorLinus Walleij <linus.walleij@stericsson.com>
Fri, 1 Oct 2010 11:33:13 +0000 (13:33 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Oct 2010 03:37:37 +0000 (21:37 -0600)
commitf9d629c737cb6687216a0c540b5466a4bd8b070a
treed3bbbd872389b5fdc7f4b1ff42d5069d7e0df930
parent5a1c98be1de165c8ad1bd5343a5d779230669489
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: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/amba-pl022.c