diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-11-23 05:45:43 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-11-23 05:45:43 -0500 |
commit | bd07ed2b4d7071716c09895e19849e8b04991656 (patch) | |
tree | 41aebda6814e358c6afc27b1f00dbe21355e5eaa /drivers/char | |
parent | 1778d55edb62753a92b979fa57072c2e1ff3d062 (diff) |
I think that if a PCI bus is a root bus, attached to a host bridge not a
PCI->PCI bridge, then bus->self is allowed to be NULL. Certainly that's
the case on my Pegasos, and it makes the MGA DRM driver oops...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-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 0cc7c305a7f6..1713451a5cc6 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) | |||
161 | * device. | 161 | * device. |
162 | */ | 162 | */ |
163 | 163 | ||
164 | if ((pdev->device == 0x0525) | 164 | if ((pdev->device == 0x0525) && pdev->bus->self |
165 | && (pdev->bus->self->vendor == 0x3388) | 165 | && (pdev->bus->self->vendor == 0x3388) |
166 | && (pdev->bus->self->device == 0x0021)) { | 166 | && (pdev->bus->self->device == 0x0021)) { |
167 | return 0; | 167 | return 0; |