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/phy/rockchip/phy-rockchip-samsung-dcphy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/kernel/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
index 125e58d..bd8a0ac 100644
--- a/kernel/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
+++ b/kernel/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
@@ -1744,7 +1744,7 @@
 	reset_control_assert(samsung->apb_rst);
 	udelay(1);
 	reset_control_deassert(samsung->apb_rst);
-	if (atomic_read(&samsung->stream_cnt)) {
+	if (atomic_read(&samsung->stream_cnt) && samsung->dphy_dev[0]) {
 		sensor_sd = get_remote_sensor(&samsung->dphy_dev[0]->sd);
 		samsung->stream_off(samsung->dphy_dev[0], &samsung->dphy_dev[0]->sd);
 		if (sensor_sd)

--
Gitblit v1.6.2