This op does not pass any pointer to the DSI device, so the DSI host driver cannot store it.
Signed-off-by: Luca Ceresoli <[email protected]> --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index d7726091819c4762698b41060b3d4d8d27940238..33475a5c18c1146cd4ea40c3c6ccaba1271a6cd9 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -981,15 +981,15 @@ static const struct component_ops mtk_dsi_component_ops = { }; static int mtk_dsi_host_attach(struct mipi_dsi_host *host, - struct mipi_dsi_device *device) + const struct mipi_dsi_bus_fmt *bus_fmt) { struct mtk_dsi *dsi = host_to_dsi(host); struct device *dev = host->dev; int ret; - dsi->lanes = device->lanes; - dsi->format = device->format; - dsi->mode_flags = device->mode_flags; + dsi->lanes = bus_fmt->lanes; + dsi->format = bus_fmt->format; + dsi->mode_flags = bus_fmt->mode_flags; dsi->next_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 1, 0); if (IS_ERR(dsi->next_bridge)) { ret = PTR_ERR(dsi->next_bridge); @@ -1184,7 +1184,7 @@ static ssize_t mtk_dsi_host_transfer(struct mipi_dsi_host *host, } static const struct mipi_dsi_host_ops mtk_dsi_ops = { - .attach = mtk_dsi_host_attach, + .attach_new = mtk_dsi_host_attach, .detach = mtk_dsi_host_detach, .transfer = mtk_dsi_host_transfer, }; -- 2.49.0
