drm/bridge: Remove compilation error

Message ID 202301191115594503875@zte.com.cn
State New
Headers
Series drm/bridge: Remove compilation error |

Commit Message

ye.xingchen@zte.com.cn Jan. 19, 2023, 3:15 a.m. UTC
  From: ye xingchen <ye.xingchen@zte.com.cn>

drivers/gpu/drm/vc4/vc4_dsi.c :1822:13: error: 'struct drm_bridge' has
 no member named 'of_node'.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 include/drm/drm_bridge.h | 2 --
 1 file changed, 2 deletions(-)
  

Patch

diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h
index 42f86327b40a..1f84a8d491c7 100644
--- a/include/drm/drm_bridge.h
+++ b/include/drm/drm_bridge.h
@@ -715,10 +715,8 @@  struct drm_bridge {
 	struct drm_encoder *encoder;
 	/** @chain_node: used to form a bridge chain */
 	struct list_head chain_node;
-#ifdef CONFIG_OF
 	/** @of_node: device node pointer to the bridge */
 	struct device_node *of_node;
-#endif
 	/** @list: to keep track of all added bridges */
 	struct list_head list;
 	/**