]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
More code cleanup
authorWolfgang Denk <wd@pollux.denx.de>
Mon, 26 Jun 2006 09:06:00 +0000 (11:06 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Mon, 26 Jun 2006 09:06:00 +0000 (11:06 +0200)
cpu/arm920t/s3c24x0/usb.c
drivers/usb_ohci.h

index 8114034cc13435ad22d7b107aa8a1b9fb0c3cd28..4bc7961a019d7748da2434811410331ecc9f08e5 100644 (file)
@@ -32,7 +32,7 @@
 # include <s3c2410.h>
 #endif
 
-int usb_cpu_init()
+int usb_cpu_init (void)
 {
 
        S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
@@ -53,7 +53,7 @@ int usb_cpu_init()
        return 0;
 }
 
-int usb_cpu_stop()
+int usb_cpu_stop (void)
 {
        S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
        /* may not want to do this */
@@ -61,7 +61,7 @@ int usb_cpu_stop()
        return 0;
 }
 
-int usb_cpu_init_fail()
+int usb_cpu_init_fail (void)
 {
        S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
        clk_power->CLKCON &= ~(1 << 4);
index a1b36ed83cc6b9d26ed14e4e3467788c5f17f998..68dd4ecafeec0aab8e735d2c560850e116987651 100644 (file)
@@ -7,18 +7,14 @@
  * usb-ohci.h
  */
 
-/* functions for doing board specific setup/cleanup */
-#ifdef CFG_USB_BOARD_INIT
+/* functions for doing board or CPU specific setup/cleanup */
 extern int usb_board_init(void);
 extern int usb_board_stop(void);
 extern int usb_cpu_init_fail(void);
-#endif
 
-#ifdef CFG_USB_CPU_INIT
 extern int usb_cpu_init(void);
 extern int usb_cpu_stop(void);
 extern int usb_cpu_init_fail(void);
-#endif
 
 
 static int cc_to_error[16] = {