diff options
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 7f2af9aca038..309023f12d7f 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -319,7 +319,8 @@ static int drm_open_helper(struct inode *inode, struct file *filp, | |||
319 | pci_dev_put(pci_dev); | 319 | pci_dev_put(pci_dev); |
320 | } | 320 | } |
321 | if (!dev->hose) { | 321 | if (!dev->hose) { |
322 | struct pci_bus *b = pci_bus_b(pci_root_buses.next); | 322 | struct pci_bus *b = list_entry(pci_root_buses.next, |
323 | struct pci_bus, node); | ||
323 | if (b) | 324 | if (b) |
324 | dev->hose = b->sysdata; | 325 | dev->hose = b->sysdata; |
325 | } | 326 | } |