From a7de8f9c9defcf8e3883e03387c640f6a0a78040 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Wed, 16 Mar 2016 17:58:55 +0100 Subject: [PATCH] gpu: arm: midgard: r12p0_04rel0: Workaround for missing last_status field Signed-off-by: Sylwester Nawrocki [jy0922.shim: apply to midgard r12p0_04rel0] Signed-off-by: Joonyoung Shim --- drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c b/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c index 1b2313a..24d7a95 100644 --- a/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c @@ -133,10 +133,12 @@ kbase_devfreq_status(struct device *dev, struct devfreq_dev_status *stat) stat->private_data = NULL; #ifdef CONFIG_DEVFREQ_THERMAL +#if 0 /* FIXME: devfreq_cooling has no last_status field */ if (kbdev->devfreq_cooling) memcpy(&kbdev->devfreq_cooling->last_status, stat, sizeof(*stat)); #endif +#endif return 0; } -- 2.7.4