mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add 5.14 patches for RPI
This commit is contained in:
parent
030f2f4fd1
commit
5c593832cc
550 changed files with 224556 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
|||
From 7602b02227228dc3e81bb1bc0b5a7a4ba5626f0e Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Fri, 23 Aug 2019 16:34:38 +0100
|
||||
Subject: [PATCH 166/552] v3d_drv: Handle missing clock more gracefully
|
||||
|
||||
Signed-off-by: popcornmix <popcornmix@gmail.com>
|
||||
---
|
||||
drivers/gpu/drm/v3d/v3d_drv.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c
|
||||
index e6a9f2ac6a55..38f8a666c9c6 100644
|
||||
--- a/drivers/gpu/drm/v3d/v3d_drv.c
|
||||
+++ b/drivers/gpu/drm/v3d/v3d_drv.c
|
||||
@@ -290,10 +290,10 @@ static int v3d_platform_drm_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
v3d->clk = devm_clk_get(dev, NULL);
|
||||
- if (IS_ERR(v3d->clk)) {
|
||||
- if (ret != -EPROBE_DEFER)
|
||||
- dev_err(dev, "Failed to get clock\n");
|
||||
- goto dev_free;
|
||||
+ if (IS_ERR_OR_NULL(v3d->clk)) {
|
||||
+ if (PTR_ERR(v3d->clk) != -EPROBE_DEFER)
|
||||
+ dev_err(dev, "Failed to get clock (%ld)\n", PTR_ERR(v3d->clk));
|
||||
+ return PTR_ERR(v3d->clk);
|
||||
}
|
||||
v3d->clk_up_rate = clk_get_rate(v3d->clk);
|
||||
/* For downclocking, drop it to the minimum frequency we can get from
|
||||
--
|
||||
2.33.0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue