Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRockMyy/patches/kernel/v4.13/0005-Remove-the-dependency-to-the-clk_mali-symbol.patch
Go to file| From 239a5e3016b7f676bc3f56ea509ed172bf954001 Mon Sep 17 00:00:00 2001 | |
| From: Myy <myy@miouyouyou.fr> | |
| Date: Sat, 22 Jul 2017 04:07:36 +0000 | |
| Subject: [PATCH] Remove the dependency to the clk_mali symbol. | |
| Inspired by @wzzy2 patch | |
| https://github.com/rockchip-linux/rockchip_forwardports/commit/359865c617129fe5fcc5530f4a88abcfaa6a5cb4 | |
| Signed-off-by: Myy <myy@miouyouyou.fr> | |
| --- | |
| drivers/gpu/arm/midgard/mali_kbase_core_linux.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| diff --git a/drivers/gpu/arm/midgard/mali_kbase_core_linux.c b/drivers/gpu/arm/midgard/mali_kbase_core_linux.c | |
| index 9cc65d2..27dcd9c 100644 | |
| --- a/drivers/gpu/arm/midgard/mali_kbase_core_linux.c | |
| +++ b/drivers/gpu/arm/midgard/mali_kbase_core_linux.c | |
| @@ -3793,7 +3793,7 @@ static int power_control_init(struct platform_device *pdev) | |
| } | |
| #endif /* LINUX_VERSION_CODE >= 3, 12, 0 */ | |
| - kbdev->clock = clk_get(kbdev->dev, "clk_mali"); | |
| + kbdev->clock = of_clk_get(kbdev->dev->of_node, 0); | |
| if (IS_ERR_OR_NULL(kbdev->clock)) { | |
| err = PTR_ERR(kbdev->clock); | |
| kbdev->clock = NULL; | |
| -- | |
| 2.10.2 | |