Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Wu Hoi Pok and committed by
Alex Deucher
90985660 60a9472c

+4 -1
+4 -1
drivers/gpu/drm/radeon/radeon_drv.c
··· 310 310 311 311 pci_set_drvdata(pdev, ddev); 312 312 313 + ret = radeon_driver_load_kms(ddev, flags); 314 + if (ret) 315 + goto err_agp; 316 + 313 317 ret = drm_dev_register(ddev, ent->driver_data); 314 318 if (ret) 315 319 goto err_agp; ··· 573 569 static const struct drm_driver kms_driver = { 574 570 .driver_features = 575 571 DRIVER_GEM | DRIVER_RENDER | DRIVER_MODESET, 576 - .load = radeon_driver_load_kms, 577 572 .open = radeon_driver_open_kms, 578 573 .postclose = radeon_driver_postclose_kms, 579 574 .unload = radeon_driver_unload_kms,