aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/ast/ast_drv.c')
-rw-r--r--drivers/gpu/drm/ast/ast_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c
index f6794745a024..3022b39c00f3 100644
--- a/drivers/gpu/drm/ast/ast_drv.c
+++ b/drivers/gpu/drm/ast/ast_drv.c
@@ -220,11 +220,11 @@ static int __init ast_init(void)
220 220
221 if (ast_modeset == 0) 221 if (ast_modeset == 0)
222 return -EINVAL; 222 return -EINVAL;
223 return drm_pci_init(&driver, &ast_pci_driver); 223 return pci_register_driver(&ast_pci_driver);
224} 224}
225static void __exit ast_exit(void) 225static void __exit ast_exit(void)
226{ 226{
227 drm_pci_exit(&driver, &ast_pci_driver); 227 pci_unregister_driver(&ast_pci_driver);
228} 228}
229 229
230module_init(ast_init); 230module_init(ast_init);