summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2005-04-13 14:06:33 +0200
committerMichael Brown2005-04-13 14:06:33 +0200
commit5b8e549c83fc8e3b967ec13b20fce62cc108e5c5 (patch)
treefac15bc493368a1ccd868b833fb4eeff164bf38f /src
parentCreated separate isa_ids.h file and a utility function to print out ISA (diff)
downloadipxe-5b8e549c83fc8e3b967ec13b20fce62cc108e5c5.tar.gz
ipxe-5b8e549c83fc8e3b967ec13b20fce62cc108e5c5.tar.xz
ipxe-5b8e549c83fc8e3b967ec13b20fce62cc108e5c5.zip
htons was used in ISAPnP code just due to ISAPnP storing bytes in
reverse order.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bus/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 1ec099e8..4b4e9a15 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -154,8 +154,8 @@ int find_pci_device ( struct pci_device *pci,
/* Fill in dev structure, if present */
if ( pci->dev ) {
pci->dev->name = driver->name;
- pci->dev->devid.vendor_id = htons ( pci->vendor );
- pci->dev->devid.device_id = htons ( pci->dev_id );
+ pci->dev->devid.vendor_id = pci->vendor;
+ pci->dev->devid.device_id = pci->dev_id;
}
/* If driver has a class, and class matches, use it */