MLK-21239-4: drm/imx: nwl_dsi-imx: Adapt to DRM changes in 4.19
authorRobert Chiras <robert.chiras@nxp.com>
Fri, 22 Mar 2019 12:32:37 +0000 (14:32 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Function signature changes:
int drm_bridge_add() -> void drm_bridge_add()

This patch adapts the nwl_dsi-imx DRM encoder to the above changes.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
drivers/gpu/drm/imx/nwl_dsi-imx.c

index 6586199..cafaa9f 100644 (file)
@@ -952,12 +952,7 @@ static int imx_nwl_dsi_probe(struct platform_device *pdev)
                dsi->bridge.funcs = &imx_nwl_dsi_bridge_funcs;
                dsi->bridge.of_node = np;
 
-               ret = drm_bridge_add(&dsi->bridge);
-               if (ret) {
-                       dev_err(dev, "Failed to add imx-nwl-dsi bridge (%d)\n",
-                               ret);
-                       return ret;
-               }
+               drm_bridge_add(&dsi->bridge);
                dev_info(dev, "Added drm bridge!");
                return 0;
        }