diff options
Diffstat (limited to 'drivers/pci/syscall.c')
-rw-r--r-- | drivers/pci/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c index 83efa001c2e7..e725f99b5479 100644 --- a/drivers/pci/syscall.c +++ b/drivers/pci/syscall.c | |||
@@ -28,7 +28,7 @@ SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn, | |||
28 | return -EPERM; | 28 | return -EPERM; |
29 | 29 | ||
30 | err = -ENODEV; | 30 | err = -ENODEV; |
31 | dev = pci_get_bus_and_slot(bus, dfn); | 31 | dev = pci_get_domain_bus_and_slot(0, bus, dfn); |
32 | if (!dev) | 32 | if (!dev) |
33 | goto error; | 33 | goto error; |
34 | 34 | ||
@@ -96,7 +96,7 @@ SYSCALL_DEFINE5(pciconfig_write, unsigned long, bus, unsigned long, dfn, | |||
96 | if (!capable(CAP_SYS_ADMIN)) | 96 | if (!capable(CAP_SYS_ADMIN)) |
97 | return -EPERM; | 97 | return -EPERM; |
98 | 98 | ||
99 | dev = pci_get_bus_and_slot(bus, dfn); | 99 | dev = pci_get_domain_bus_and_slot(0, bus, dfn); |
100 | if (!dev) | 100 | if (!dev) |
101 | return -ENODEV; | 101 | return -ENODEV; |
102 | 102 | ||