drm/arm/hdlcd: remove calls to drm_mode_config_cleanup()
authorDanilo Krummrich <dakr@redhat.com>
Wed, 26 Oct 2022 15:34:31 +0000 (17:34 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Mon, 7 Nov 2022 20:47:37 +0000 (20:47 +0000)
commit611fc22c9e5e13276c819a7f7a7d19b794bbed1a
treee6c1652e22c84adfc04eaef0da9da8738211fe48
parent8aa201952d59ce91ac499b05a4867145c6a80f37
drm/arm/hdlcd: 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/20221026153431.72033-5-dakr@redhat.com
drivers/gpu/drm/arm/hdlcd_drv.c