Skip to content

Commit

Permalink
drm/radeon: remove load callback from kms_driver
Browse files Browse the repository at this point in the history
The ".load" callback in "struct drm_driver" is deprecated. In order to remove
the callback, we have to manually call "radeon_driver_load_kms" instead.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Wu Hoi Pok <wuhoipok@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Wu Hoi Pok authored and Alex Deucher committed Jul 23, 2024
1 parent 60a9472 commit 9098566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/radeon/radeon_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ static int radeon_pci_probe(struct pci_dev *pdev,

pci_set_drvdata(pdev, ddev);

ret = radeon_driver_load_kms(ddev, flags);
if (ret)
goto err_agp;

ret = drm_dev_register(ddev, ent->driver_data);
if (ret)
goto err_agp;
Expand Down Expand Up @@ -569,7 +573,6 @@ static const struct drm_ioctl_desc radeon_ioctls_kms[] = {
static const struct drm_driver kms_driver = {
.driver_features =
DRIVER_GEM | DRIVER_RENDER | DRIVER_MODESET,
.load = radeon_driver_load_kms,
.open = radeon_driver_open_kms,
.postclose = radeon_driver_postclose_kms,
.unload = radeon_driver_unload_kms,
Expand Down

0 comments on commit 9098566

Please sign in to comment.