diff options
Diffstat (limited to 'drivers/thermal/fair_share.c')
-rw-r--r-- | drivers/thermal/fair_share.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/thermal/fair_share.c b/drivers/thermal/fair_share.c index 792479f2b64b..944ba2f340c8 100644 --- a/drivers/thermal/fair_share.c +++ b/drivers/thermal/fair_share.c | |||
@@ -22,9 +22,6 @@ | |||
22 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 22 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
26 | |||
27 | #include <linux/module.h> | ||
28 | #include <linux/thermal.h> | 25 | #include <linux/thermal.h> |
29 | 26 | ||
30 | #include "thermal_core.h" | 27 | #include "thermal_core.h" |
@@ -111,23 +108,15 @@ static int fair_share_throttle(struct thermal_zone_device *tz, int trip) | |||
111 | static struct thermal_governor thermal_gov_fair_share = { | 108 | static struct thermal_governor thermal_gov_fair_share = { |
112 | .name = "fair_share", | 109 | .name = "fair_share", |
113 | .throttle = fair_share_throttle, | 110 | .throttle = fair_share_throttle, |
114 | .owner = THIS_MODULE, | ||
115 | }; | 111 | }; |
116 | 112 | ||
117 | static int __init thermal_gov_fair_share_init(void) | 113 | int thermal_gov_fair_share_register(void) |
118 | { | 114 | { |
119 | return thermal_register_governor(&thermal_gov_fair_share); | 115 | return thermal_register_governor(&thermal_gov_fair_share); |
120 | } | 116 | } |
121 | 117 | ||
122 | static void __exit thermal_gov_fair_share_exit(void) | 118 | void thermal_gov_fair_share_unregister(void) |
123 | { | 119 | { |
124 | thermal_unregister_governor(&thermal_gov_fair_share); | 120 | thermal_unregister_governor(&thermal_gov_fair_share); |
125 | } | 121 | } |
126 | 122 | ||
127 | /* This should load after thermal framework */ | ||
128 | fs_initcall(thermal_gov_fair_share_init); | ||
129 | module_exit(thermal_gov_fair_share_exit); | ||
130 | |||
131 | MODULE_AUTHOR("Durgadoss R"); | ||
132 | MODULE_DESCRIPTION("A simple weight based thermal throttling governor"); | ||
133 | MODULE_LICENSE("GPL"); | ||