drm: merge in Linus mainline
[safe/jmp/linux-2.6] / drivers / char / drm / mga_drv.c
index 93f171e..9f7ed0e 100644 (file)
@@ -131,7 +131,7 @@ static int mga_driver_device_is_agp(drm_device_t * dev)
         * device.
         */
 
-       if ((pdev->device == 0x0525)
+       if ((pdev->device == 0x0525) && pdev->bus->self
            && (pdev->bus->self->vendor == 0x3388)
            && (pdev->bus->self->device == 0x0021)) {
                return 0;