aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/drm/mga_drv.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-23 23:10:47 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-23 23:10:47 -0800
commit33bc227e4e48ddadcf2eacb381c19df338f0a6c8 (patch)
tree8671830606ba42f4c68e08eb75d84172964b280e /drivers/char/drm/mga_drv.c
parent569cfaadb0ea21bfcedac85dbc5147b4a9ed42d2 (diff)
parent7655f493b74f3048c02458bc32cd0b144f7b394f (diff)
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
Diffstat (limited to 'drivers/char/drm/mga_drv.c')
-rw-r--r--drivers/char/drm/mga_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/mga_drv.c b/drivers/char/drm/mga_drv.c
index 0cc7c305a7f..1713451a5cc 100644
--- a/drivers/char/drm/mga_drv.c
+++ b/drivers/char/drm/mga_drv.c
@@ -161,7 +161,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;