struct cdns_dsi_output *output = &dsi->output;
        struct cdns_dsi_input *input = &dsi->input;
        struct drm_bridge *bridge;
-       struct drm_panel *panel;
-       struct device_node *np;
        int ret;
 
        /*
        /*
         * The host <-> device link might be described using an OF-graph
         * representation, in this case we extract the device of_node from
-        * this representation, otherwise we use dsidev->dev.of_node which
-        * should have been filled by the core.
+        * this representation.
         */
-       np = of_graph_get_remote_node(dsi->base.dev->of_node, DSI_OUTPUT_PORT,
-                                     dev->channel);
-       if (!np)
-               np = of_node_get(dev->dev.of_node);
-
-       panel = of_drm_find_panel(np);
-       if (!IS_ERR(panel)) {
-               bridge = drm_panel_bridge_add_typed(panel,
-                                                   DRM_MODE_CONNECTOR_DSI);
-       } else {
-               bridge = of_drm_find_bridge(np);
-               if (!bridge)
-                       bridge = ERR_PTR(-EINVAL);
-       }
-
-       of_node_put(np);
-
+       bridge = devm_drm_of_get_bridge(dsi->base.dev, dsi->base.dev->of_node,
+                                       DSI_OUTPUT_PORT, dev->channel);
        if (IS_ERR(bridge)) {
                ret = PTR_ERR(bridge);
                dev_err(host->dev, "failed to add DSI device %s (err = %d)",
 
        output->dev = dev;
        output->bridge = bridge;
-       output->panel = panel;
 
        /*
         * The DSI output has been properly configured, we can now safely
                           struct mipi_dsi_device *dev)
 {
        struct cdns_dsi *dsi = to_cdns_dsi(host);
-       struct cdns_dsi_output *output = &dsi->output;
        struct cdns_dsi_input *input = &dsi->input;
 
        drm_bridge_remove(&input->bridge);
-       if (output->panel)
-               drm_panel_bridge_remove(output->bridge);
 
        return 0;
 }
 
 
 #include <drm/drm_bridge.h>
 #include <drm/drm_mipi_dsi.h>
-#include <drm/drm_panel.h>
 
 #include <linux/bits.h>
 #include <linux/completion.h>
 
 struct cdns_dsi_output {
        struct mipi_dsi_device *dev;
-       struct drm_panel *panel;
        struct drm_bridge *bridge;
        union phy_configure_opts phy_opts;
 };