drm/radeon: add late_register for connector
authorWu Hoi Pok <wuhoipok@gmail.com>
Fri, 4 Oct 2024 01:05:59 +0000 (09:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:09:41 +0000 (14:09 -0400)
commitb4c1ad70e279bacbc772a468033bdecce2f5e0dc
tree8e61c287c944127f120c133712c08b953dbdeced
parentfbca19695330ac78e9c14af05fc3e3f4c4278a52
drm/radeon: add late_register for connector

The patch is to solve null dereference in 'aux.dev', which is
introduced in recent radeon rework. By having 'late_register',
the connector should be registered after 'drm_dev_register'
automatically, where in before it is the opposite.

Fixes: 90985660ba48 ("drm/radeon: remove load callback from kms_driver")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3665
Tested-by: Hans de Goede <hdegoede@redhat.com>
Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Wu Hoi Pok <wuhoipok@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/radeon_connectors.c