From: Mathias Krause Date: Wed, 16 Jul 2014 17:43:13 +0000 (+0200) Subject: hp-wmi: Add missing __init annotations to initialization code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=702ef54255350cc821cd1ea9095bc8b336235d26;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Matthew Garrett --- 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) 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 @@ register_wifi_error: 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;