drm: merge in Linus mainline
[linux-2.6-block.git] / drivers / char / drm / mga_drv.c
index 93f171e634c06c123f29e9ad1b2b55c4700b23a3..9f7ed0e0351b0c39cab6751c97df2b5694b5a872 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;