build/patch/kernel/archive/sunxi-6.1/patches.megous/drm-sun4i-Fix-wrong-location-of-clk_prepare_enable.patch

30 lines
979 B
Diff
Raw Permalink Normal View History

From 489a91cf55791e3ccc37b604656ff18116ac707e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Sat, 30 May 2020 03:15:04 +0200
Subject: [PATCH 191/388] drm/sun4i: Fix wrong location of clk_prepare_enable
It should be placed inside the has_channel_0 block.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 7c4270657..0d06c45ef 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -793,8 +793,8 @@ static int sun4i_tcon_init_clocks(struct device *dev,
dev_err(dev, "Couldn't get the TCON channel 0 clock\n");
return PTR_ERR(tcon->sclk0);
}
+ clk_prepare_enable(tcon->sclk0);
}
- clk_prepare_enable(tcon->sclk0);
if (tcon->quirks->has_channel_1) {
tcon->sclk1 = devm_clk_get(dev, "tcon-ch1");
--
2.35.3