Checking that the number of lanes is > 0 is now done by the DRM MIPI DSI core in mipi_dsi_attach().
Signed-off-by: Luca Ceresoli <[email protected]> --- drivers/gpu/drm/mcde/mcde_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mcde/mcde_dsi.c b/drivers/gpu/drm/mcde/mcde_dsi.c index a3423459dd7ac8395b77d0479a02ebb3a9ba259c..8e3b9c9c64e99239e54ba5a338cf3bbb6c84b40f 100644 --- a/drivers/gpu/drm/mcde/mcde_dsi.c +++ b/drivers/gpu/drm/mcde/mcde_dsi.c @@ -172,7 +172,7 @@ static int mcde_dsi_host_attach(struct mipi_dsi_host *host, { struct mcde_dsi *d = host_to_mcde_dsi(host); - if (mdsi->lanes < 1 || mdsi->lanes > 2) { + if (mdsi->lanes > 2) { DRM_ERROR("dsi device params invalid, 1 or 2 lanes supported\n"); return -EINVAL; } -- 2.49.0
