mirror of
https://github.com/openbsd/src.git
synced 2026-06-17 23:03:29 +02:00
move drm_dev_register() call to before connector test and check return
This commit is contained in:
@@ -3812,6 +3812,10 @@ amdgpu_attachhook(struct device *self)
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
r = drm_dev_register(dev, adev->flags);
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
/*
|
||||
* 1. don't init fbdev on hw without DCE
|
||||
* 2. don't init fbdev if there are no connectors
|
||||
@@ -3820,12 +3824,6 @@ amdgpu_attachhook(struct device *self)
|
||||
!list_empty(&adev_to_drm(adev)->mode_config.connector_list)) {
|
||||
const struct drm_format_info *format;
|
||||
|
||||
/*
|
||||
* in linux via amdgpu_pci_probe -> drm_dev_register
|
||||
* must be before drm_fbdev_generic_setup()
|
||||
*/
|
||||
drm_dev_register(dev, adev->flags);
|
||||
|
||||
/* OpenBSD specific backlight property on connector */
|
||||
amdgpu_init_backlight(adev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user