Skip to content

Commit

Permalink
hp-wmi: Add missing __init annotations to initialization code
Browse files Browse the repository at this point in the history
These functions are only called from other initialization routines, so
can be marked __init, too.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
  • Loading branch information
minipli authored and Matthew Garrett committed Aug 16, 2014
1 parent 8a1a970 commit 702ef54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static int hp_wmi_tablet_state(void)
return (state & 0x4) ? 1 : 0;
}

static int hp_wmi_bios_2009_later(void)
static int __init hp_wmi_bios_2009_later(void)
{
int state = 0;
int ret = hp_wmi_perform_query(HPWMI_FEATURE_QUERY, 0, &state,
Expand Down Expand Up @@ -704,7 +704,7 @@ static void cleanup_sysfs(struct platform_device *device)
device_remove_file(&device->dev, &dev_attr_postcode);
}

static int hp_wmi_rfkill_setup(struct platform_device *device)
static int __init hp_wmi_rfkill_setup(struct platform_device *device)
{
int err;
int wireless = 0;
Expand Down Expand Up @@ -806,7 +806,7 @@ static int hp_wmi_rfkill_setup(struct platform_device *device)
return err;
}

static int hp_wmi_rfkill2_setup(struct platform_device *device)
static int __init hp_wmi_rfkill2_setup(struct platform_device *device)
{
int err, i;
struct bios_rfkill2_state state;
Expand Down

0 comments on commit 702ef54

Please sign in to comment.