drm/arm/malidp: remove calls to drm_mode_config_cleanup()
authorDanilo Krummrich <dakr@redhat.com>
Wed, 26 Oct 2022 15:59:34 +0000 (17:59 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Wed, 16 Nov 2022 10:33:45 +0000 (10:33 +0000)
commitf574f3772cdda0adacce0bff03ba59f754d7d42e
treec683fead85314b0de7cdb4ef53504aa4a0d82eca
parent3ad510343812ee2500ffe4ae7a891f302f543cf3
drm/arm/malidp: remove calls to drm_mode_config_cleanup()

drm_mode_config_init() simply calls drmm_mode_config_init(), hence
cleanup is automatically handled through registering
drm_mode_config_cleanup() with drmm_add_action_or_reset().

While at it, get rid of the deprecated drm_mode_config_init() and
replace it with drmm_mode_config_init() directly.

Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221026155934.125294-6-dakr@redhat.com
drivers/gpu/drm/arm/malidp_drv.c