]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove double defines and use dma_free
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Jun 2010 14:51:54 +0000 (16:51 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Jun 2010 14:51:54 +0000 (16:51 +0200)
bus/usb/ohci.c

index a42d9fee135f78533374cc8244648f06d47948d9..956a27292e321171b2382cdb447e3dcc1595467c 100644 (file)
@@ -339,10 +339,8 @@ grub_ohci_pci_iter (grub_pci_device_t dev,
   return 0;
 
  fail:
-#ifndef GRUB_MACHINE_MIPS_YEELOONG
   if (o)
-    grub_free ((void *) o->hcca);
-#endif
+    grub_dma_free (o->hcca_chunk);
   grub_free (o);
 
   return 0;
@@ -883,11 +881,6 @@ grub_ohci_transfer (grub_usb_controller_t dev,
   return err;
 }
 
-#define GRUB_OHCI_SET_PORT_ENABLE (1 << 1)
-#define GRUB_OHCI_CLEAR_PORT_ENABLE (1 << 0)
-#define GRUB_OHCI_SET_PORT_RESET (1 << 4)
-#define GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE (1 << 20)
-
 static grub_err_t
 grub_ohci_portstatus (grub_usb_controller_t dev,
                      unsigned int port, unsigned int enable)