]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/arm920t/at91rm9200/usb.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / arm920t / at91rm9200 / usb.c
index 98e3cdd58a71f7de6f751255f5a23dbd748badc2..72355dcf9aa15bc01ba6e61905ded7cdd10736bf 100644 (file)
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 # ifdef CONFIG_AT91RM9200
 
 #include <asm/arch/hardware.h>
 
-int usb_cpu_init()
+int usb_cpu_init(void)
 {
        /* Enable USB host clock. */
        *AT91C_PMC_SCER = AT91C_PMC_UHP;        /* 48MHz clock enabled for UHP */
@@ -36,7 +36,7 @@ int usb_cpu_init()
        return 0;
 }
 
-int usb_cpu_stop()
+int usb_cpu_stop(void)
 {
        /* Initialization failed */
        *AT91C_PMC_PCDR = 1 << AT91C_ID_UHP;    /* Peripheral Clock Disable Register */
@@ -44,10 +44,10 @@ int usb_cpu_stop()
        return 0;
 }
 
-int usb_cpu_init_fail()
+int usb_cpu_init_fail(void)
 {
-       usb_cpu_stop();
+       return usb_cpu_stop();
 }
 
 # endif /* CONFIG_AT91RM9200 */
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */