Commit 0fd2d1d4 authored by Mathias Krause's avatar Mathias Krause Committed by Luis Henriques

hp-wmi: Add missing __init annotations to initialization code

commit 702ef542 upstream.

These functions are only called from other initialization routines, so
can be marked __init, too.
Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 4c41a4b8
......@@ -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,
......@@ -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;
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment