summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2016-03-16 17:58:55 +0100
committersy1124.kim <sy1124.kim@samsung.com>2016-08-24 16:21:05 +0900
commite0db4702727d4badfa432d663cedb034cca89840 (patch)
tree32aa153f49f13c74eba9015a365a754b54d4dc6c
parent3cac887222bee19fd6dc2183eef3ffdb4e6b5717 (diff)
downloadlinux-3.10-artik-e0db4702727d4badfa432d663cedb034cca89840.tar.gz
linux-3.10-artik-e0db4702727d4badfa432d663cedb034cca89840.tar.bz2
linux-3.10-artik-e0db4702727d4badfa432d663cedb034cca89840.zip
gpu: arm: midgard: r12p0_04rel0: Workaround for missing last_status field
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> Change-Id: I9615a4b3a4eb2828c5872046194f7fc76697c1f9
-rw-r--r--drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_devfreq.c2
1 files changed, 2 insertions, 0 deletions
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 1b2313af653..24d7a9527b5 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;
}