From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/drm/rockchip/rockchip_lvds.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/gpu/drm/rockchip/rockchip_lvds.c b/kernel/drivers/gpu/drm/rockchip/rockchip_lvds.c
index c4d74e1..bc21bf4 100644
--- a/kernel/drivers/gpu/drm/rockchip/rockchip_lvds.c
+++ b/kernel/drivers/gpu/drm/rockchip/rockchip_lvds.c
@@ -533,6 +533,15 @@
goto err_free_encoder;
}
+ if (lvds->secondary) {
+ kfree(connector->name);
+ connector->name = kasprintf(GFP_KERNEL, "LVDS-DUAL");
+ if (!connector->name) {
+ ret = -ENOMEM;
+ goto err_free_connector;
+ }
+ }
+
drm_connector_helper_add(connector,
&rockchip_lvds_connector_helper_funcs);
--
Gitblit v1.6.2