mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: dsi: ignore return value of drm_panel_attach()
drm_panel_attach() return EBUSY if panel->connector already set, which indicate that panel and connector are already bound. Because the .bind() function might call multiple times, so it is unnecessary to check its return value. Change-Id: I45e82983dc177825561ff4796e585dafe0f7c201 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
@@ -1517,18 +1517,11 @@ static int dw_mipi_dsi_register(struct drm_device *drm,
|
||||
drm_connector_helper_add(connector,
|
||||
&dw_mipi_dsi_connector_helper_funcs);
|
||||
drm_mode_connector_attach_encoder(connector, encoder);
|
||||
|
||||
ret = drm_panel_attach(dsi->panel, &dsi->connector);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to attach panel: %d\n", ret);
|
||||
goto connector_cleanup;
|
||||
}
|
||||
drm_panel_attach(dsi->panel, connector);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
connector_cleanup:
|
||||
drm_connector_cleanup(connector);
|
||||
encoder_cleanup:
|
||||
drm_encoder_cleanup(encoder);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user