diff options
author | Marek Vasut <marex@denx.de> | 2023-11-27 22:26:25 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2024-02-26 08:33:45 +0100 |
commit | 1c71d925c03aa03a5675184a88687ce2b95ed9fb (patch) | |
tree | 448de7e4c1fc13b1d8b73646a75320ce025128e9 | |
parent | drm/mxsfb: Switch to drmm_mode_config_init (diff) | |
download | linux-1c71d925c03aa03a5675184a88687ce2b95ed9fb.tar.xz linux-1c71d925c03aa03a5675184a88687ce2b95ed9fb.zip |
drm: lcdif: 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/20231127212638.77688-1-marex@denx.de
-rw-r--r-- | drivers/gpu/drm/mxsfb/lcdif_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c index 18de2f17e249..ea10bf81582e 100644 --- a/drivers/gpu/drm/mxsfb/lcdif_drv.c +++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c @@ -167,7 +167,11 @@ static int lcdif_load(struct drm_device *drm) return ret; /* 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"); + return ret; + } ret = lcdif_kms_init(lcdif); if (ret < 0) { @@ -227,7 +231,6 @@ static void lcdif_unload(struct drm_device *drm) drm_crtc_vblank_off(&lcdif->crtc); drm_kms_helper_poll_fini(drm); - drm_mode_config_cleanup(drm); pm_runtime_put_sync(drm->dev); pm_runtime_disable(drm->dev); |