]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
authorproski <proski@localhost>
Mon, 8 Jun 2009 20:10:27 +0000 (20:10 +0000)
committerproski <proski@localhost>
Mon, 8 Jun 2009 20:10:27 +0000 (20:10 +0000)
* bus/usb/ohci.c: Set interf with correct field.

ChangeLog
bus/usb/ohci.c

index fb44b35c66c59f3a71a44d0108df77fb7d5bf6e3..c6a355f1fd62909b304179b36f5ec3720acbbbab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2009-06-08  Oliver Henshaw <oliver.henshaw@gmail.com>
 
+       * bus/usb/ohci.c: Set interf with correct field.
+
        * bus/usb/uhci.c: Remove unneeded doubled lines.
        * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
        Remove whitespace inside comment.
index 55df96ea21167eef72f225a8761bb308c4ca4377..180f4dd41e3e2f97aaae4dbf6f42b8a36368b0e9 100644 (file)
@@ -128,7 +128,7 @@ grub_ohci_pci_iter (int bus, int device, int func,
   addr = grub_pci_make_address (bus, device, func, 2);
   class = grub_pci_read (addr);
 
-  interf = class & 0xFF;
+  interf = (class >> 8) & 0xFF;
   subclass = (class >> 16) & 0xFF;
   class >>= 24;