More code cleanup

This commit is contained in:
Wolfgang Denk 2006-06-26 11:06:00 +02:00
parent a11f778d76
commit 99d70e3a47
2 changed files with 4 additions and 8 deletions

View File

@ -32,7 +32,7 @@
# include <s3c2410.h> # include <s3c2410.h>
#endif #endif
int usb_cpu_init() int usb_cpu_init (void)
{ {
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER(); S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
@ -53,7 +53,7 @@ int usb_cpu_init()
return 0; return 0;
} }
int usb_cpu_stop() int usb_cpu_stop (void)
{ {
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER(); S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
/* may not want to do this */ /* may not want to do this */
@ -61,7 +61,7 @@ int usb_cpu_stop()
return 0; return 0;
} }
int usb_cpu_init_fail() int usb_cpu_init_fail (void)
{ {
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER(); S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
clk_power->CLKCON &= ~(1 << 4); clk_power->CLKCON &= ~(1 << 4);

View File

@ -7,18 +7,14 @@
* usb-ohci.h * usb-ohci.h
*/ */
/* functions for doing board specific setup/cleanup */ /* functions for doing board or CPU specific setup/cleanup */
#ifdef CFG_USB_BOARD_INIT
extern int usb_board_init(void); extern int usb_board_init(void);
extern int usb_board_stop(void); extern int usb_board_stop(void);
extern int usb_cpu_init_fail(void); extern int usb_cpu_init_fail(void);
#endif
#ifdef CFG_USB_CPU_INIT
extern int usb_cpu_init(void); extern int usb_cpu_init(void);
extern int usb_cpu_stop(void); extern int usb_cpu_stop(void);
extern int usb_cpu_init_fail(void); extern int usb_cpu_init_fail(void);
#endif
static int cc_to_error[16] = { static int cc_to_error[16] = {