diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-07-16 13:43:07 -0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-08-16 04:23:52 -0400 |
commit | d997d88edff9f47f4939560823f656432d8bc821 (patch) | |
tree | a3cd17215c269cb99f84f2566ef4a15db790d493 /drivers/platform | |
parent | 80f65558bdd14c0a113cd085582d578a3a3a1976 (diff) |
alienware-wmi: Mark DMI table as __initconst
The DMI table is only ever used during initialization. Mark it as
__initconst so its memory can be released appropriately. In turn, the
callback function can be marked with __init, too.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/alienware-wmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index 297b6640213f..cdbaf3c5328a 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c | |||
@@ -71,13 +71,13 @@ static struct quirk_entry quirk_x51_family = { | |||
71 | .num_zones = 3, | 71 | .num_zones = 3, |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static int dmi_matched(const struct dmi_system_id *dmi) | 74 | static int __init dmi_matched(const struct dmi_system_id *dmi) |
75 | { | 75 | { |
76 | quirks = dmi->driver_data; | 76 | quirks = dmi->driver_data; |
77 | return 1; | 77 | return 1; |
78 | } | 78 | } |
79 | 79 | ||
80 | static struct dmi_system_id alienware_quirks[] = { | 80 | static const struct dmi_system_id alienware_quirks[] __initconst = { |
81 | { | 81 | { |
82 | .callback = dmi_matched, | 82 | .callback = dmi_matched, |
83 | .ident = "Alienware X51 R1", | 83 | .ident = "Alienware X51 R1", |