mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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:
parent
de8de2c8ac
commit
025ac05f15
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user