]> git.sur5r.net Git - u-boot/blobdiff - board/esd/pmc440/pmc440.c
usb: rename board_usb_init_type to usb_init_type
[u-boot] / board / esd / pmc440 / pmc440.c
index 549b3b73ce1bd66a0d2d8f216571815c69b9a9a1..88fc5f77b6b02786a5f9d8b474f7f7e2ce06feab 100644 (file)
@@ -27,6 +27,7 @@
 #endif
 #include <serial.h>
 #include <asm/4xx_pci.h>
+#include <usb.h>
 
 #include "fpga.h"
 #include "pmc440.h"
@@ -821,7 +822,7 @@ int bootstrap_eeprom_read (unsigned dev_addr, unsigned offset,
 }
 
 #if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT)
-int usb_board_init(void)
+int board_usb_init(int index, enum usb_init_type init)
 {
        char *act = getenv("usbact");
        int i;
@@ -845,10 +846,9 @@ int usb_board_stop(void)
        return 0;
 }
 
-int usb_board_init_fail(void)
+int board_usb_cleanup(int index, enum usb_init_type init)
 {
-       usb_board_stop();
-       return 0;
+       return usb_board_stop();
 }
 #endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT) */