projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b101d08
)
drm/imagination: Fix error codes in pvr_device_clk_init()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Thu, 30 Nov 2023 07:26:29 +0000
(10:26 +0300)
committer
Maxime Ripard
<mripard@kernel.org>
Thu, 30 Nov 2023 08:16:05 +0000
(09:16 +0100)
There is a cut and paste error so this code returns the wrong variable.
Fixes:
1f88f017e649
("drm/imagination: Get GPU resources")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/1649c66b-3eea-40d2-9687-592124f968cf@moroto.mountain
drivers/gpu/drm/imagination/pvr_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/imagination/pvr_device.c
b/drivers/gpu/drm/imagination/pvr_device.c
index
8499bec
..
e1dcc4e
100644
(file)
--- a/
drivers/gpu/drm/imagination/pvr_device.c
+++ b/
drivers/gpu/drm/imagination/pvr_device.c
@@
-105,12
+105,12
@@
static int pvr_device_clk_init(struct pvr_device *pvr_dev)
sys_clk = devm_clk_get_optional(drm_dev->dev, "sys");
if (IS_ERR(sys_clk))
- return dev_err_probe(drm_dev->dev, PTR_ERR(
core
_clk),
+ return dev_err_probe(drm_dev->dev, PTR_ERR(
sys
_clk),
"failed to get sys clock\n");
mem_clk = devm_clk_get_optional(drm_dev->dev, "mem");
if (IS_ERR(mem_clk))
- return dev_err_probe(drm_dev->dev, PTR_ERR(
core
_clk),
+ return dev_err_probe(drm_dev->dev, PTR_ERR(
mem
_clk),
"failed to get mem clock\n");
pvr_dev->core_clk = core_clk;