[ARM] pxa: avoid kfreeing static data if platform device fails to register
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 24 Apr 2008 14:28:11 +0000 (15:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jun 2008 12:49:16 +0000 (13:49 +0100)
When a dynamically allocated platform device is 'put', the platform
device's platform_data is kfree'd.  This is bad if it's pointing at
static data.  Use the provided function to register platform data
for these devices.

This also means we can mark the pcmcia ops structures as __initdata.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found