summaryrefslogtreecommitdiffstats
path: root/drivers/pci/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/syscall.c')
-rw-r--r--drivers/pci/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c
index a58098024..c935efd9a 100644
--- a/drivers/pci/syscall.c
+++ b/drivers/pci/syscall.c
@@ -120,7 +120,7 @@ sys_pciconfig_write(unsigned long bus, unsigned long dfn,
err = get_user(word, (u16 *)buf);
if (err)
break;
- err = pci_write_config_byte(dev, off, word);
+ err = pci_write_config_word(dev, off, word);
if (err != PCIBIOS_SUCCESSFUL)
err = -EIO;
break;
@@ -129,7 +129,7 @@ sys_pciconfig_write(unsigned long bus, unsigned long dfn,
err = get_user(dword, (u32 *)buf);
if (err)
break;
- pci_write_config_byte(dev, off, dword);
+ err = pci_write_config_dword(dev, off, dword);
if (err != PCIBIOS_SUCCESSFUL)
err = -EIO;
break;