patch-2.3.40 linux/drivers/pci/syscall.c

Next file: linux/drivers/pcmcia/bulkmem.c
Previous file: linux/drivers/pci/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/drivers/pci/syscall.c linux/drivers/pci/syscall.c
@@ -120,7 +120,7 @@
 		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 @@
 		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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)