[Librem-5-dev] [PATCH 09/12] imx-hdp: Adust to current drm
Guido Günther
agx at sigxcpu.org
Mon Oct 29 04:47:51 PDT 2018
See f353f77671fb3a69d4380af818ce5489e40b72f2
Signed-off-by: Guido Günther <guido.gunther at puri.sm>
---
drivers/gpu/drm/imx/hdp/imx-hdp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/imx/hdp/imx-hdp.c b/drivers/gpu/drm/imx/hdp/imx-hdp.c
index b0fc4b4acee1..0c83f2ee8808 100644
--- a/drivers/gpu/drm/imx/hdp/imx-hdp.c
+++ b/drivers/gpu/drm/imx/hdp/imx-hdp.c
@@ -1095,7 +1095,7 @@ static int imx_hdp_imx_bind(struct device *dev, struct device *master,
bridge->encoder = encoder;
bridge->driver_private = hdp;
bridge->funcs = &imx_hdp_bridge_funcs;
- ret = drm_bridge_attach(drm, bridge);
+ ret = drm_bridge_attach(encoder, bridge, NULL);
if (ret) {
DRM_ERROR("Failed to initialize bridge with drm\n");
return -EINVAL;
@@ -1172,7 +1172,6 @@ static void imx_hdp_imx_unbind(struct device *dev, struct device *master,
imx_hdp_call(hdp, pixel_clock_disable, &hdp->clks);
imx_hdp_call(hdp, pixel_link_deinit, &hdp->state);
- drm_bridge_detach(&hdp->bridge);
}
static const struct component_ops imx_hdp_imx_ops = {
--
2.19.0
More information about the Librem-5-dev
mailing list