summaryrefslogtreecommitdiff
path: root/drivers/char/drm/drm_stub.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-09-22 04:19:34 +1000
committerDave Airlie <airlied@linux.ie>2006-09-22 05:32:34 +1000
commit2f02cc3fb8960754a2a5df6a33f53528e0d830be (patch)
tree73c692f47c6f589e394b71b89122f9566ecbd11d /drivers/char/drm/drm_stub.c
parente08870c87ab5b0c0c3cb05d0d0041240736493e4 (diff)
drm: add device/vendor id to drm_device_t for compat with FreeBSD drivers
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_stub.c')
-rw-r--r--drivers/char/drm/drm_stub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c
index a9bb18ac3a2b..7b1d4e8659ba 100644
--- a/drivers/char/drm/drm_stub.c
+++ b/drivers/char/drm/drm_stub.c
@@ -65,6 +65,8 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
mutex_init(&dev->ctxlist_mutex);
dev->pdev = pdev;
+ dev->pci_device = pdev->device;
+ dev->pci_vendor = pdev->vendor;
#ifdef __alpha__
dev->hose = pdev->sysdata;