summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2005-04-13 14:15:14 +0200
committerMichael Brown2005-04-13 14:15:14 +0200
commit4ae83f28f2d73a6371fc17c83dfe945e441f5460 (patch)
tree03b08977a1b5d3f987cada6031b11a7b1fac3351 /src
parentUse __bswap_16, since we're not dealing with quantities to go onto the network. (diff)
downloadipxe-4ae83f28f2d73a6371fc17c83dfe945e441f5460.tar.gz
ipxe-4ae83f28f2d73a6371fc17c83dfe945e441f5460.tar.xz
ipxe-4ae83f28f2d73a6371fc17c83dfe945e441f5460.zip
Don't use htons, for compatibility with PCI :(
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bus/mca.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c
index 101bd468..28b99f77 100644
--- a/src/drivers/bus/mca.c
+++ b/src/drivers/bus/mca.c
@@ -98,9 +98,8 @@ int find_mca_device ( struct mca_device *mca, struct mca_driver *driver ) {
if ( mca->dev ) {
mca->dev->name = driver->name;
mca->dev->devid.vendor_id =
- htons ( GENERIC_MCA_VENDOR );
- mca->dev->devid.device_id =
- htons ( id->id );
+ GENERIC_MCA_VENDOR;
+ mca->dev->devid.device_id = id->id;
}
mca->already_tried = 1;
return 1;