Remove double defines and use dma_free

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-06-02 16:51:54 +02:00
parent 5d538b8b4a
commit 7db51e329b

View file

@ -339,10 +339,8 @@ grub_ohci_pci_iter (grub_pci_device_t dev,
return 0; return 0;
fail: fail:
#ifndef GRUB_MACHINE_MIPS_YEELOONG
if (o) if (o)
grub_free ((void *) o->hcca); grub_dma_free (o->hcca_chunk);
#endif
grub_free (o); grub_free (o);
return 0; return 0;
@ -883,11 +881,6 @@ grub_ohci_transfer (grub_usb_controller_t dev,
return err; 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 static grub_err_t
grub_ohci_portstatus (grub_usb_controller_t dev, grub_ohci_portstatus (grub_usb_controller_t dev,
unsigned int port, unsigned int enable) unsigned int port, unsigned int enable)