aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/bridge/panel.c
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2023-08-31 09:09:37 +0100
committerDouglas Anderson <dianders@chromium.org>2023-09-06 08:32:45 -0700
commit481fc9e7e11d8ace7e7ae4df1b7ebb5aa4e97789 (patch)
tree1a420a6a99ae58531f518b5164718a0cc458293e /drivers/gpu/drm/bridge/panel.c
parentdrm/bridge: Drop conditionals around of_node pointers (diff)
downloadwireguard-linux-481fc9e7e11d8ace7e7ae4df1b7ebb5aa4e97789.tar.xz
wireguard-linux-481fc9e7e11d8ace7e7ae4df1b7ebb5aa4e97789.zip
drm/bridge: Drop CONFIG_OF conditionals around of_node pointers
Having conditional around the of_node pointers turns out to make driver code use ugly #ifdef and #if blocks. So drop the conditionals. Suggested-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230831080938.47454-4-biju.das.jz@bp.renesas.com
Diffstat (limited to 'drivers/gpu/drm/bridge/panel.c')
-rw-r--r--drivers/gpu/drm/bridge/panel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c
index a6587d233505..e00d2e94c751 100644
--- a/drivers/gpu/drm/bridge/panel.c
+++ b/drivers/gpu/drm/bridge/panel.c
@@ -318,9 +318,7 @@ struct drm_bridge *drm_panel_bridge_add_typed(struct drm_panel *panel,
panel_bridge->panel = panel;
panel_bridge->bridge.funcs = &panel_bridge_bridge_funcs;
-#ifdef CONFIG_OF
panel_bridge->bridge.of_node = panel->dev->of_node;
-#endif
panel_bridge->bridge.ops = DRM_BRIDGE_OP_MODES;
panel_bridge->bridge.type = connector_type;