diff options
author | Dave Airlie <airlied@linux.ie> | 2006-08-19 16:55:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-08-28 11:27:09 +1000 |
commit | 205c573e449b38d759273f6a51eb8c1131585ece (patch) | |
tree | 84114a3cd10aa4f637b8aeeec822eaee9b7ecbb1 /linux-core/drm_irq.c | |
parent | b4feb2c04efdcf31d094b03ea32327a06d9dcdd2 (diff) |
remove local copies of pci domain/bus/slot/num
Diffstat (limited to 'linux-core/drm_irq.c')
-rw-r--r-- | linux-core/drm_irq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index d76fd51d..21a649bc 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -64,9 +64,9 @@ int drm_irq_by_busid(struct inode *inode, struct file *filp, if (copy_from_user(&p, argp, sizeof(p))) return -EFAULT; - if ((p.busnum >> 8) != dev->pci_domain || - (p.busnum & 0xff) != dev->pci_bus || - p.devnum != dev->pci_slot || p.funcnum != dev->pci_func) + if ((p.busnum >> 8) != drm_get_pci_domain(dev) || + (p.busnum & 0xff) != dev->pdev->bus->number || + p.devnum != PCI_SLOT(dev->pdev->devfn) || p.funcnum != PCI_FUNC(dev->pdev->devfn)) return -EINVAL; p.irq = dev->irq; |