]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fix warning: no return statement in function returning non-void
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 19 Oct 2007 06:10:15 +0000 (08:10 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 23 Oct 2007 22:29:06 +0000 (00:29 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/arm920t/at91rm9200/usb.c
cpu/pxa/usb.c

index 366262e4ccd0c2f5b71f235a4d2fdd50a82f7183..c121de6328ed8cac480ce097b395092bbae4bb9d 100644 (file)
@@ -28,7 +28,7 @@
 
 #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,9 +44,9 @@ 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 */
index 3c11d4de44fe43d098f8da623644c9e6e62fbe8a..d2812a413ed37cb1b1073f04f615927366477297 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <asm/arch/pxa-regs.h>
 
-int usb_cpu_init()
+int usb_cpu_init(void)
 {
 #if defined(CONFIG_CPU_MONAHANS)
        /* Enable USB host clock. */
@@ -65,7 +65,7 @@ int usb_cpu_init()
        return 0;
 }
 
-int usb_cpu_stop()
+int usb_cpu_stop(void)
 {
        UHCHR |= UHCHR_FHR;
        udelay(11);
@@ -86,7 +86,7 @@ int usb_cpu_stop()
        return 0;
 }
 
-int usb_cpu_init_fail()
+int usb_cpu_init_fail(void)
 {
        return 0;
 }