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

28 lines
886 B
Diff

From 4153f1be7fd08e52b07cdf77b5ede534019bece2 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 202/464] 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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 6a52fb12cbfb..5f413bb4fd4e 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -796,6 +796,7 @@ 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);
}
if (tcon->quirks->has_channel_1) {
--
2.34.1