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:
@@ -220,11 +220,11 @@ static int __init ast_init(void)
|
||||
|
||||
if (ast_modeset == 0)
|
||||
return -EINVAL;
|
||||
return drm_pci_init(&driver, &ast_pci_driver);
|
||||
return pci_register_driver(&ast_pci_driver);
|
||||
}
|
||||
static void __exit ast_exit(void)
|
||||
{
|
||||
drm_pci_exit(&driver, &ast_pci_driver);
|
||||
pci_unregister_driver(&ast_pci_driver);
|
||||
}
|
||||
|
||||
module_init(ast_init);
|
||||
|
Viittaa uudesa ongelmassa
Block a user