disp: msm: replace kzfree with kfree
This change replaces kzfree with kfree as kzfree has been renamed. While moving to the latest 5.10 tip, additional small changes were required to resolve compilation issues: set_dma_ops has moved from dma-mapping to dma-map-ops header. This change includes the new header file required. drm_panel_add returns void, this change removes the expected return value check. drm_prime_pages_to_sg takes an additional parameter. This change passes in the drm_device pointer the function is looking for. Remove an unused variable in sde_crtc vblank function. Change-Id: I47c085c0cb64432873c2e750ae64cbdc2b5340da Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Этот коммит содержится в:
@@ -2176,7 +2176,7 @@ int dsi_panel_get_io_resources(struct dsi_panel *panel,
|
||||
parse_fail:
|
||||
list_for_each_entry_safe(pos, tmp, &temp_head, list) {
|
||||
list_del(&pos->list);
|
||||
kzfree(pos);
|
||||
kfree(pos);
|
||||
}
|
||||
end:
|
||||
return rc;
|
||||
@@ -3563,15 +3563,11 @@ struct dsi_panel *dsi_panel_get(struct device *parent,
|
||||
NULL, DRM_MODE_CONNECTOR_DSI);
|
||||
panel->mipi_device.dev.of_node = of_node;
|
||||
|
||||
rc = drm_panel_add(&panel->drm_panel);
|
||||
if (rc)
|
||||
goto error_vreg_put;
|
||||
drm_panel_add(&panel->drm_panel);
|
||||
|
||||
mutex_init(&panel->panel_lock);
|
||||
|
||||
return panel;
|
||||
error_vreg_put:
|
||||
(void)dsi_panel_vreg_put(panel);
|
||||
error:
|
||||
kfree(panel);
|
||||
return ERR_PTR(rc);
|
||||
|
Ссылка в новой задаче
Block a user