From 7a28f09d26b6ab94a4a29f35df87eefd086ec68b Mon Sep 17 00:00:00 2001 From: Jon Medhurst Date: Mon, 16 Nov 2015 13:21:05 +0000 Subject: mali: Fixes for Linux 4.4 Rename opp functions Signed-off-by: Jon Medhurst --- drivers/gpu/arm/midgard/mali_kbase_core_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/arm/midgard/mali_kbase_core_linux.c b/drivers/gpu/arm/midgard/mali_kbase_core_linux.c index 71a22c39d509..1e5a9c085eae 100755 --- a/drivers/gpu/arm/midgard/mali_kbase_core_linux.c +++ b/drivers/gpu/arm/midgard/mali_kbase_core_linux.c @@ -3698,7 +3698,7 @@ static int kbase_platform_device_probe(struct platform_device *pdev) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)) && defined(CONFIG_OF) \ && defined(CONFIG_PM_OPP) /* Register the OPPs if they are available in device tree */ - if (of_init_opp_table(kbdev->dev) < 0) + if (dev_pm_opp_of_add_table(kbdev->dev) < 0) dev_dbg(kbdev->dev, "OPP table not found\n"); #endif @@ -3738,7 +3738,7 @@ out_sysfs: kbase_common_device_remove(kbdev); out_common_init: #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) - of_free_opp_table(kbdev->dev); + dev_pm_opp_of_remove_table(kbdev->dev); #endif clk_disable_unprepare(kbdev->clock); out_clock_prepare: -- cgit v1.2.3