aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 17fde2f27418..9ad42d583493 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -719,14 +719,6 @@ static struct drm_driver driver = {
719 .llseek = noop_llseek, 719 .llseek = noop_llseek,
720 }, 720 },
721 721
722 .pci_driver = {
723 .name = DRIVER_NAME,
724 .id_table = pciidlist,
725 .probe = i915_pci_probe,
726 .remove = i915_pci_remove,
727 .driver.pm = &i915_pm_ops,
728 },
729
730 .name = DRIVER_NAME, 722 .name = DRIVER_NAME,
731 .desc = DRIVER_DESC, 723 .desc = DRIVER_DESC,
732 .date = DRIVER_DATE, 724 .date = DRIVER_DATE,
@@ -735,6 +727,14 @@ static struct drm_driver driver = {
735 .patchlevel = DRIVER_PATCHLEVEL, 727 .patchlevel = DRIVER_PATCHLEVEL,
736}; 728};
737 729
730static struct pci_driver i915_pci_driver = {
731 .name = DRIVER_NAME,
732 .id_table = pciidlist,
733 .probe = i915_pci_probe,
734 .remove = i915_pci_remove,
735 .driver.pm = &i915_pm_ops,
736};
737
738static int __init i915_init(void) 738static int __init i915_init(void)
739{ 739{
740 if (!intel_agp_enabled) { 740 if (!intel_agp_enabled) {
@@ -768,12 +768,12 @@ static int __init i915_init(void)
768 if (!(driver.driver_features & DRIVER_MODESET)) 768 if (!(driver.driver_features & DRIVER_MODESET))
769 driver.get_vblank_timestamp = NULL; 769 driver.get_vblank_timestamp = NULL;
770 770
771 return drm_init(&driver); 771 return drm_pci_init(&driver, &i915_pci_driver);
772} 772}
773 773
774static void __exit i915_exit(void) 774static void __exit i915_exit(void)
775{ 775{
776 drm_exit(&driver); 776 drm_pci_exit(&driver, &i915_pci_driver);
777} 777}
778 778
779module_init(i915_init); 779module_init(i915_init);