Commit 90985660 authored by Wu Hoi Pok's avatar Wu Hoi Pok Committed by Alex Deucher

drm/radeon: remove load callback from kms_driver

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Tested-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarWu Hoi Pok <wuhoipok@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 60a9472c
...@@ -310,6 +310,10 @@ static int radeon_pci_probe(struct pci_dev *pdev, ...@@ -310,6 +310,10 @@ static int radeon_pci_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, ddev); 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); ret = drm_dev_register(ddev, ent->driver_data);
if (ret) if (ret)
goto err_agp; goto err_agp;
...@@ -569,7 +573,6 @@ static const struct drm_ioctl_desc radeon_ioctls_kms[] = { ...@@ -569,7 +573,6 @@ static const struct drm_ioctl_desc radeon_ioctls_kms[] = {
static const struct drm_driver kms_driver = { static const struct drm_driver kms_driver = {
.driver_features = .driver_features =
DRIVER_GEM | DRIVER_RENDER | DRIVER_MODESET, DRIVER_GEM | DRIVER_RENDER | DRIVER_MODESET,
.load = radeon_driver_load_kms,
.open = radeon_driver_open_kms, .open = radeon_driver_open_kms,
.postclose = radeon_driver_postclose_kms, .postclose = radeon_driver_postclose_kms,
.unload = radeon_driver_unload_kms, .unload = radeon_driver_unload_kms,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment