Skip to content

Commit

Permalink
[POWERPC] bootwrapper: Declare udelay() in ops.h
Browse files Browse the repository at this point in the history
Declarations in various users are removed.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Scott Wood authored and Paul Mackerras committed Aug 22, 2007
1 parent dc4f397 commit 3ee9b7a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion arch/powerpc/boot/mpsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "io.h"
#include "ops.h"

extern void udelay(long delay);

#define MPSC_CHR_1 0x000c

Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/boot/mv64x60_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "ops.h"
#include "mv64x60.h"

extern void udelay(long);

/* Register defines */
#define MV64x60_I2C_REG_SLAVE_ADDR 0x00
#define MV64x60_I2C_REG_DATA 0x04
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/boot/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,6 @@ static inline void exit(void)
void *_platform_stack_top = _bss_stack + sizeof(_bss_stack);

extern unsigned long timebase_period_ns;
void udelay(long delay);

#endif /* _PPC_BOOT_OPS_H_ */
2 changes: 0 additions & 2 deletions arch/powerpc/boot/prpmc2800.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ extern char _end[];
extern char _vmlinux_start[], _vmlinux_end[];
extern char _dtb_start[], _dtb_end[];

extern void udelay(long delay);

#define KB 1024U
#define MB (KB*KB)
#define GB (KB*MB)
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/boot/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "io.h"
#include "ops.h"

extern void udelay(long delay);

static int serial_open(void)
{
struct serial_console_data *scdp = console_ops.data;
Expand Down

0 comments on commit 3ee9b7a

Please sign in to comment.