Browse Source

htons was used in ISAPnP code just due to ISAPnP storing bytes in

reverse order.
tags/v0.9.3
Michael Brown 19 years ago
parent
commit
5b8e549c83
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/bus/pci.c

+ 2
- 2
src/drivers/bus/pci.c View File

154
 		/* Fill in dev structure, if present */
154
 		/* Fill in dev structure, if present */
155
 		if ( pci->dev ) {
155
 		if ( pci->dev ) {
156
 			pci->dev->name = driver->name;
156
 			pci->dev->name = driver->name;
157
-			pci->dev->devid.vendor_id = htons ( pci->vendor );
158
-			pci->dev->devid.device_id = htons ( pci->dev_id );
157
+			pci->dev->devid.vendor_id = pci->vendor;
158
+			pci->dev->devid.device_id = pci->dev_id;
159
 		}
159
 		}
160
 
160
 
161
 		/* If driver has a class, and class matches, use it */
161
 		/* If driver has a class, and class matches, use it */

Loading…
Cancel
Save