drm/pci: Deprecate drm_pci_init/exit completely
The magic switching between proper pci driver and shadow-attach isn't useful anymore since there's no ums+kms drivers left. Let's split this up properly, calling pci_register_driver for kms drivers and renaming the shadow-attach init to drm_legacy_pci_init/exit. Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-6-daniel.vetter@ffwll.ch
This commit is contained in:
@@ -1570,7 +1570,7 @@ static int __init vmwgfx_init(void)
|
||||
if (vgacon_text_force())
|
||||
return -EINVAL;
|
||||
|
||||
ret = drm_pci_init(&driver, &vmw_pci_driver);
|
||||
ret = pci_register_driver(&vmw_pci_driver);
|
||||
if (ret)
|
||||
DRM_ERROR("Failed initializing DRM.\n");
|
||||
return ret;
|
||||
@@ -1578,7 +1578,7 @@ static int __init vmwgfx_init(void)
|
||||
|
||||
static void __exit vmwgfx_exit(void)
|
||||
{
|
||||
drm_pci_exit(&driver, &vmw_pci_driver);
|
||||
pci_unregister_driver(&vmw_pci_driver);
|
||||
}
|
||||
|
||||
module_init(vmwgfx_init);
|
||||
|
Reference in New Issue
Block a user