[2278] 2009-06-08 Oliver Henshaw <[email protected]>

Pavel Roskin <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2278
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2278
Author:   proski
Date:     2009-06-08 20:10:27 +0000 (Mon, 08 Jun 2009)
Log Message:
-----------
2009-06-08  Oliver Henshaw <[email protected]>

	* bus/usb/ohci.c: Set interf with correct field.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/bus/usb/ohci.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-06-08 20:08:59 UTC (rev 2277)
+++ trunk/grub2/ChangeLog	2009-06-08 20:10:27 UTC (rev 2278)
@@ -1,5 +1,7 @@
 2009-06-08  Oliver Henshaw <[email protected]>
 
+	* 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.

Modified: trunk/grub2/bus/usb/ohci.c
===================================================================
--- trunk/grub2/bus/usb/ohci.c	2009-06-08 20:08:59 UTC (rev 2277)
+++ trunk/grub2/bus/usb/ohci.c	2009-06-08 20:10:27 UTC (rev 2278)
@@ -128,7 +128,7 @@
   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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.