gpu: arm: midgard: r12p0_04rel0: Fix 'struct devfreq_cooling_ops' related compilation...
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 15 Mar 2016 15:18:56 +0000 (16:18 +0100)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 06:39:34 +0000 (15:39 +0900)
There is no 'struct devfreq_cooling_ops' in current kernel tree
and 'struct devfreq_cooling_power' seems to be an equivalent of it.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[jy0922.shim: apply to midgard r12p0_04rel0]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c
drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.h

index ebe65c414f0c529febfcbc97afda58e48184a0b3..f536fe69fc1eaec600ed000b47b4f3a348553a21 100644 (file)
@@ -85,7 +85,7 @@ static unsigned long model_dynamic_power(unsigned long freq,
        return (dynamic_coefficient * v2 * f_mhz) / 1000000; /* mW */
 }
 
-struct devfreq_cooling_ops power_model_simple_ops = {
+struct devfreq_cooling_power power_model_simple_ops = {
        .get_static_power = model_static_power,
        .get_dynamic_power = model_dynamic_power,
 };
index d20de1ef6170d4238397e28a7fae6c02b83d3375..17eede4d917c0a72e1c800daa8da0e61d8393cb5 100644 (file)
@@ -38,6 +38,6 @@
  */
 int kbase_power_model_simple_init(struct kbase_device *kbdev);
 
-extern struct devfreq_cooling_ops power_model_simple_ops;
+extern struct devfreq_cooling_power power_model_simple_ops;
 
 #endif /* _BASE_POWER_MODEL_SIMPLE_H_ */