summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/standby.S
diff options
context:
space:
mode:
authorRussell King2008-04-24 16:28:11 +0200
committerRussell King2008-06-02 14:49:16 +0200
commit4e5e8de0dbdeb08df2b4c15fa2b0ba2216091793 (patch)
treecda179e4e8e7eaf1984f90638fba143b6dd8b228 /arch/arm/mach-pxa/standby.S
parent[ARM] pxa: avoid registering multiple pxa2xx_pcmcia devices (diff)
downloadkernel-qcow2-linux-4e5e8de0dbdeb08df2b4c15fa2b0ba2216091793.tar.gz
kernel-qcow2-linux-4e5e8de0dbdeb08df2b4c15fa2b0ba2216091793.tar.xz
kernel-qcow2-linux-4e5e8de0dbdeb08df2b4c15fa2b0ba2216091793.zip
[ARM] pxa: avoid kfreeing static data if platform device fails to register
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>
Diffstat (limited to 'arch/arm/mach-pxa/standby.S')
0 files changed, 0 insertions, 0 deletions