
fix build with linux-3.0

Signed-off-by: Thomas Backlund <tmb@mageia.org>

 drivers/gpu/drm/mach64/mach64_drv.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

--- a/drivers/gpu/drm/mach64/mach64_drv.c.orig	2011-07-15 02:48:40.000000000 +0300
+++ a/drivers/gpu/drm/mach64/mach64_drv.c	2011-07-15 13:24:41.454753025 +0300
@@ -63,10 +63,6 @@ static struct drm_driver driver = {
 		.fasync = drm_fasync,
 		.llseek = noop_llseek,
 		},
-	.pci_driver = {
-		.name = DRIVER_NAME,
-		.id_table = pciidlist,
-	},
 
 	.name = DRIVER_NAME,
 	.desc = DRIVER_DESC,
@@ -76,15 +72,20 @@ static struct drm_driver driver = {
 	.patchlevel = DRIVER_PATCHLEVEL,
 };
 
+static struct pci_driver mach64_pci_driver = {
+	.name = DRIVER_NAME,
+	.id_table = pciidlist,
+};
+
 static int __init mach64_init(void)
 {
 	driver.num_ioctls = mach64_max_ioctl;
-	return drm_init(&driver);
+	return drm_pci_init(&driver, &mach64_pci_driver);
 }
 
 static void __exit mach64_exit(void)
 {
-	drm_exit(&driver);
+	drm_pci_exit(&driver, &mach64_pci_driver);
 }
 
 module_init(mach64_init);
