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/bridge/rk1000.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/kernel/drivers/gpu/drm/bridge/rk1000.c b/kernel/drivers/gpu/drm/bridge/rk1000.c
index 1b362fd..609cda6 100644
--- a/kernel/drivers/gpu/drm/bridge/rk1000.c
+++ b/kernel/drivers/gpu/drm/bridge/rk1000.c
@@ -18,7 +18,7 @@
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_of.h>
-#include <drm/drmP.h>
+#include <drm/drm_probe_helper.h>
#include "../rockchip/rockchip_drm_drv.h"
@@ -30,11 +30,11 @@
{ DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 27000, 720, 732,
738, 864, 0, 576, 582, 588, 625, 0,
DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC),
- .vrefresh = 50, 0, },
+ 0, },
{ DRM_MODE("720x480", DRM_MODE_TYPE_DRIVER, 27000, 720, 736,
742, 858, 0, 480, 486, 492, 529, 0,
DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC),
- .vrefresh = 60, 0, },
+ 0, },
};
struct rk1000_tve {
@@ -258,8 +258,8 @@
static void
rk1000_bridge_mode_set(struct drm_bridge *bridge,
- struct drm_display_mode *mode,
- struct drm_display_mode *adjusted_mode)
+ const struct drm_display_mode *mode,
+ const struct drm_display_mode *adjusted_mode)
{
struct rk1000_tve *rk1000;
@@ -291,7 +291,8 @@
rk1000_tve_disable(rk1000);
}
-static int rk1000_bridge_attach(struct drm_bridge *bridge)
+static int rk1000_bridge_attach(struct drm_bridge *bridge,
+ enum drm_bridge_attach_flags flags)
{
struct rk1000_tve *rk1000 = bridge_to_rk1000(bridge);
int ret;
--
Gitblit v1.6.2