drm/mxsfb: Switch to drmm_mode_config_init

Switch from deprecated unmanaged drm_mode_config_init() to
managed drmm_mode_config_init(). No functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127212612.77667-1-marex@denx.de
This commit is contained in:
Marek Vasut 2023-11-27 22:25:38 +01:00
parent de8de2c8ac
commit 025ac05f15

View File

@ -249,7 +249,11 @@ static int mxsfb_load(struct drm_device *drm,
pm_runtime_enable(drm->dev);
/* Modeset init */
drm_mode_config_init(drm);
ret = drmm_mode_config_init(drm);
if (ret) {
dev_err(drm->dev, "Failed to initialize mode config\n");
goto err_vblank;
}
ret = mxsfb_kms_init(mxsfb);
if (ret < 0) {
@ -312,7 +316,6 @@ err_vblank:
static void mxsfb_unload(struct drm_device *drm)
{
drm_kms_helper_poll_fini(drm);
drm_mode_config_cleanup(drm);
pm_runtime_get_sync(drm->dev);
mxsfb_irq_uninstall(drm);