gpio/pca953x: Remove dynamic platform data pointer
authorDavid Jander <david@protonic.nl>
Tue, 14 Jun 2011 09:00:55 +0000 (11:00 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 16 Jun 2011 19:41:49 +0000 (13:41 -0600)
commitc6dcf592437e5919cb03af5dcfe369702e6a4a7c
tree8cf24f8ae30b6d9d3c9f776f53e74b55f14607df
parentc609c05db10dcb020f6869186e548a0596a78896
gpio/pca953x: Remove dynamic platform data pointer

In the case that we obtain device-tree data to fill in platform_data, the new
platform data struct was dynamically allocated, but the pointer to it was not
used everywhere it should. It seems easier to fix this issue by removing the
dynamic allocation altogether since its data is only used during driver
probing.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pca953x.c