Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4e5e8de0 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 04ba0f65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment