diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-07-16 13:43:13 -0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-08-16 04:23:53 -0400 |
commit | 702ef54255350cc821cd1ea9095bc8b336235d26 (patch) | |
tree | 7a554ca28aae75aa62b67c096da54edf6f17fae8 /drivers/platform | |
parent | 8a1a970acd7434cab6373ad83313401f6f5d2d7c (diff) |
hp-wmi: Add missing __init annotations to initialization code
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 484a8673b835..4c559640dcba 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -295,7 +295,7 @@ static int hp_wmi_tablet_state(void) | |||
295 | return (state & 0x4) ? 1 : 0; | 295 | return (state & 0x4) ? 1 : 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int hp_wmi_bios_2009_later(void) | 298 | static int __init hp_wmi_bios_2009_later(void) |
299 | { | 299 | { |
300 | int state = 0; | 300 | int state = 0; |
301 | int ret = hp_wmi_perform_query(HPWMI_FEATURE_QUERY, 0, &state, | 301 | int ret = hp_wmi_perform_query(HPWMI_FEATURE_QUERY, 0, &state, |
@@ -704,7 +704,7 @@ static void cleanup_sysfs(struct platform_device *device) | |||
704 | device_remove_file(&device->dev, &dev_attr_postcode); | 704 | device_remove_file(&device->dev, &dev_attr_postcode); |
705 | } | 705 | } |
706 | 706 | ||
707 | static int hp_wmi_rfkill_setup(struct platform_device *device) | 707 | static int __init hp_wmi_rfkill_setup(struct platform_device *device) |
708 | { | 708 | { |
709 | int err; | 709 | int err; |
710 | int wireless = 0; | 710 | int wireless = 0; |
@@ -806,7 +806,7 @@ register_wifi_error: | |||
806 | return err; | 806 | return err; |
807 | } | 807 | } |
808 | 808 | ||
809 | static int hp_wmi_rfkill2_setup(struct platform_device *device) | 809 | static int __init hp_wmi_rfkill2_setup(struct platform_device *device) |
810 | { | 810 | { |
811 | int err, i; | 811 | int err, i; |
812 | struct bios_rfkill2_state state; | 812 | struct bios_rfkill2_state state; |