summaryrefslogtreecommitdiff
path: root/linux/drm_ioctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drm_ioctl.h')
-rw-r--r--linux/drm_ioctl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h
index 4712cbd3..e0c87d2d 100644
--- a/linux/drm_ioctl.h
+++ b/linux/drm_ioctl.h
@@ -114,8 +114,10 @@ int DRM(setunique)(struct inode *inode, struct file *filp,
if (*p) break;
pci_dev = pci_find_slot(b, PCI_DEVFN(d,f));
- if (pci_dev)
+ if (pci_dev) {
+ dev->pdev = pci_dev;
dev->hose = pci_dev->sysdata;
+ }
} while(0);
#endif