From c0947beba630fd39fff617bbe06671d7659ac75a Mon Sep 17 00:00:00 2001 From: proski Date: Mon, 8 Jun 2009 20:10:27 +0000 Subject: [PATCH] 2009-06-08 Oliver Henshaw * bus/usb/ohci.c: Set interf with correct field. --- ChangeLog | 2 ++ bus/usb/ohci.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb44b35c6..c6a355f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2009-06-08 Oliver Henshaw + * 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. diff --git a/bus/usb/ohci.c b/bus/usb/ohci.c index 55df96ea2..180f4dd41 100644 --- a/bus/usb/ohci.c +++ b/bus/usb/ohci.c @@ -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;