diff options
| -rw-r--r-- | drivers/thermal/intel_powerclamp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c index 12623bc02f46..b0f7ced5c3ef 100644 --- a/drivers/thermal/intel_powerclamp.c +++ b/drivers/thermal/intel_powerclamp.c | |||
| @@ -667,7 +667,7 @@ static struct thermal_cooling_device_ops powerclamp_cooling_ops = { | |||
| 667 | }; | 667 | }; |
| 668 | 668 | ||
| 669 | /* runs on Nehalem and later */ | 669 | /* runs on Nehalem and later */ |
| 670 | static const struct x86_cpu_id intel_powerclamp_ids[] = { | 670 | static const struct x86_cpu_id intel_powerclamp_ids[] __initconst = { |
| 671 | { X86_VENDOR_INTEL, 6, 0x1a}, | 671 | { X86_VENDOR_INTEL, 6, 0x1a}, |
| 672 | { X86_VENDOR_INTEL, 6, 0x1c}, | 672 | { X86_VENDOR_INTEL, 6, 0x1c}, |
| 673 | { X86_VENDOR_INTEL, 6, 0x1e}, | 673 | { X86_VENDOR_INTEL, 6, 0x1e}, |
| @@ -694,7 +694,7 @@ static const struct x86_cpu_id intel_powerclamp_ids[] = { | |||
| 694 | }; | 694 | }; |
| 695 | MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids); | 695 | MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids); |
| 696 | 696 | ||
| 697 | static int powerclamp_probe(void) | 697 | static int __init powerclamp_probe(void) |
| 698 | { | 698 | { |
| 699 | if (!x86_match_cpu(intel_powerclamp_ids)) { | 699 | if (!x86_match_cpu(intel_powerclamp_ids)) { |
| 700 | pr_err("Intel powerclamp does not run on family %d model %d\n", | 700 | pr_err("Intel powerclamp does not run on family %d model %d\n", |
| @@ -760,7 +760,7 @@ file_error: | |||
| 760 | debugfs_remove_recursive(debug_dir); | 760 | debugfs_remove_recursive(debug_dir); |
| 761 | } | 761 | } |
| 762 | 762 | ||
| 763 | static int powerclamp_init(void) | 763 | static int __init powerclamp_init(void) |
| 764 | { | 764 | { |
| 765 | int retval; | 765 | int retval; |
| 766 | int bitmap_size; | 766 | int bitmap_size; |
| @@ -809,7 +809,7 @@ exit_free: | |||
| 809 | } | 809 | } |
| 810 | module_init(powerclamp_init); | 810 | module_init(powerclamp_init); |
| 811 | 811 | ||
| 812 | static void powerclamp_exit(void) | 812 | static void __exit powerclamp_exit(void) |
| 813 | { | 813 | { |
| 814 | unregister_hotcpu_notifier(&powerclamp_cpu_notifier); | 814 | unregister_hotcpu_notifier(&powerclamp_cpu_notifier); |
| 815 | end_power_clamp(); | 815 | end_power_clamp(); |
