diff options
Diffstat (limited to 'drivers/char/drm/mga_drv.c')
-rw-r--r-- | drivers/char/drm/mga_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/mga_drv.c b/drivers/char/drm/mga_drv.c index 93f171e634c0..9f7ed0e0351b 100644 --- a/drivers/char/drm/mga_drv.c +++ b/drivers/char/drm/mga_drv.c | |||
@@ -131,7 +131,7 @@ static int mga_driver_device_is_agp(drm_device_t * dev) | |||
131 | * device. | 131 | * device. |
132 | */ | 132 | */ |
133 | 133 | ||
134 | if ((pdev->device == 0x0525) | 134 | if ((pdev->device == 0x0525) && pdev->bus->self |
135 | && (pdev->bus->self->vendor == 0x3388) | 135 | && (pdev->bus->self->vendor == 0x3388) |
136 | && (pdev->bus->self->device == 0x0021)) { | 136 | && (pdev->bus->self->device == 0x0021)) { |
137 | return 0; | 137 | return 0; |