summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-02-18 04:18:45 +0000
committerDave Airlie <airlied@linux.ie>2006-02-18 04:18:45 +0000
commitb2523e7aa103d7d0451ae460d4ab5c7556eebf8e (patch)
tree16e4160995a1d926f043742e053fe38607f1f633
parenteb5666b089ac0defe9a8ae3d218c9d4a098f683b (diff)
always enable and set master on pci device
-rw-r--r--linux-core/drm_stub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c
index cabef261..6ba6f6e1 100644
--- a/linux-core/drm_stub.c
+++ b/linux-core/drm_stub.c
@@ -214,8 +214,11 @@ int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent,
if (!drm_fb_loaded) {
pci_set_drvdata(pdev, dev);
pci_request_regions(pdev, driver->pci_driver.name);
- pci_enable_device(pdev);
}
+
+ pci_enable_device(pdev);
+ pci_set_master(pdev);
+
if ((ret = drm_fill_in_dev(dev, pdev, ent, driver))) {
printk(KERN_ERR "DRM: fill_in_dev failed\n");
goto err_g1;