Commit 1d0c3fd0 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Andy Shevchenko

platform/x86: acerhdf: mark appropriate content with __init prefix

These three functions are only called from the probe code which is
already marked __init and hence these can be __init as well.

Cc: Peter Feuerer <peter@piie.net>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Shevchenko <andy@infradead.org>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarPeter Feuerer <peter@piie.net>
parent 684238d7
...@@ -619,7 +619,7 @@ static int str_starts_with(const char *str, const char *start) ...@@ -619,7 +619,7 @@ static int str_starts_with(const char *str, const char *start)
} }
/* check hardware */ /* check hardware */
static int acerhdf_check_hardware(void) static int __init acerhdf_check_hardware(void)
{ {
char const *vendor, *version, *product; char const *vendor, *version, *product;
const struct bios_settings *bt = NULL; const struct bios_settings *bt = NULL;
...@@ -695,7 +695,7 @@ static int acerhdf_check_hardware(void) ...@@ -695,7 +695,7 @@ static int acerhdf_check_hardware(void)
return 0; return 0;
} }
static int acerhdf_register_platform(void) static int __init acerhdf_register_platform(void)
{ {
int err = 0; int err = 0;
...@@ -727,7 +727,7 @@ static void acerhdf_unregister_platform(void) ...@@ -727,7 +727,7 @@ static void acerhdf_unregister_platform(void)
platform_driver_unregister(&acerhdf_driver); platform_driver_unregister(&acerhdf_driver);
} }
static int acerhdf_register_thermal(void) static int __init acerhdf_register_thermal(void)
{ {
cl_dev = thermal_cooling_device_register("acerhdf-fan", NULL, cl_dev = thermal_cooling_device_register("acerhdf-fan", NULL,
&acerhdf_cooling_ops); &acerhdf_cooling_ops);
......
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