forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
80f65558bd
commit
d997d88edf
|
@ -71,13 +71,13 @@ static struct quirk_entry quirk_x51_family = {
|
||||||
.num_zones = 3,
|
.num_zones = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int dmi_matched(const struct dmi_system_id *dmi)
|
static int __init dmi_matched(const struct dmi_system_id *dmi)
|
||||||
{
|
{
|
||||||
quirks = dmi->driver_data;
|
quirks = dmi->driver_data;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dmi_system_id alienware_quirks[] = {
|
static const struct dmi_system_id alienware_quirks[] __initconst = {
|
||||||
{
|
{
|
||||||
.callback = dmi_matched,
|
.callback = dmi_matched,
|
||||||
.ident = "Alienware X51 R1",
|
.ident = "Alienware X51 R1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user