commit | 4e5e8de0dbdeb08df2b4c15fa2b0ba2216091793 | [log] [tgz] |
---|---|---|
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | Thu Apr 24 15:28:11 2008 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Jun 02 13:49:16 2008 +0100 |
tree | cda179e4e8e7eaf1984f90638fba143b6dd8b228 | |
parent | 04ba0f656f7580d8a51a5b3441e088309141b67a [diff] |
[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>