summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-01-16 21:24:12 -0800
committerIan Romanick <idr@us.ibm.com>2007-01-16 21:24:12 -0800
commitcc1d08f113140010f49503adc4e7afe5db892a02 (patch)
treec251649c591256cef451d7b666976f70d44fb5d0
parent54d40b528ab769c4e89aaca87d1728a6194e4378 (diff)
Fix bad parameter to pci_device_cfg_write in pci_device_cfg_write_u8.
When changing the interface of the pci_device_cfg_write_u* functions in commit 37ce43c1804bad9c52b8316eaefd3a57b670ee29, I forgot to modify pci_device_cfg_write_u8 to pass a pointer to data to pci_device_cfg_write instead of just passing data.
-rw-r--r--src/common_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_interface.c b/src/common_interface.c
index 16a0305..5b07d3c 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -429,7 +429,7 @@ pci_device_cfg_write_u8(struct pci_device *dev, uint8_t data,
pciaddr_t offset)
{
pciaddr_t bytes;
- int err = pci_device_cfg_write( dev, data, offset, 1, & bytes );
+ int err = pci_device_cfg_write(dev, & data, offset, 1, & bytes);
if ( (err == 0) && (bytes != 1) ) {
err = ENOSPC;