Skip to content

Commit

Permalink
alienware-wmi: Mark DMI table as __initconst
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
minipli authored and Matthew Garrett committed Aug 16, 2014
1 parent 80f6555 commit d997d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/alienware-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ static struct quirk_entry quirk_x51_family = {
.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;
return 1;
}

static struct dmi_system_id alienware_quirks[] = {
static const struct dmi_system_id alienware_quirks[] __initconst = {
{
.callback = dmi_matched,
.ident = "Alienware X51 R1",
Expand Down

0 comments on commit d997d88

Please sign in to comment.