diff options
author | Scott Wood <scottwood@freescale.com> | 2007-08-20 13:39:55 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-22 01:21:49 -0400 |
commit | 3ee9b7abafc36a9377af6f036f50c3450954884c (patch) | |
tree | 7b7d313652dedce36887de45187ad5d8d1a5666e | |
parent | dc4f397d6e385c4ea0fe9732df911a86f1a78c9a (diff) |
[POWERPC] bootwrapper: Declare udelay() in ops.h
Declarations in various users are removed.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/boot/mpsc.c | 1 | ||||
-rw-r--r-- | arch/powerpc/boot/mv64x60_i2c.c | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/ops.h | 1 | ||||
-rw-r--r-- | arch/powerpc/boot/prpmc2800.c | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/serial.c | 2 |
5 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/boot/mpsc.c b/arch/powerpc/boot/mpsc.c index f1c0e965e5ce..802ea53790d8 100644 --- a/arch/powerpc/boot/mpsc.c +++ b/arch/powerpc/boot/mpsc.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include "io.h" | 17 | #include "io.h" |
18 | #include "ops.h" | 18 | #include "ops.h" |
19 | 19 | ||
20 | extern void udelay(long delay); | ||
21 | 20 | ||
22 | #define MPSC_CHR_1 0x000c | 21 | #define MPSC_CHR_1 0x000c |
23 | 22 | ||
diff --git a/arch/powerpc/boot/mv64x60_i2c.c b/arch/powerpc/boot/mv64x60_i2c.c index 435fe8528680..d085377be3bc 100644 --- a/arch/powerpc/boot/mv64x60_i2c.c +++ b/arch/powerpc/boot/mv64x60_i2c.c | |||
@@ -21,8 +21,6 @@ | |||
21 | #include "ops.h" | 21 | #include "ops.h" |
22 | #include "mv64x60.h" | 22 | #include "mv64x60.h" |
23 | 23 | ||
24 | extern void udelay(long); | ||
25 | |||
26 | /* Register defines */ | 24 | /* Register defines */ |
27 | #define MV64x60_I2C_REG_SLAVE_ADDR 0x00 | 25 | #define MV64x60_I2C_REG_SLAVE_ADDR 0x00 |
28 | #define MV64x60_I2C_REG_DATA 0x04 | 26 | #define MV64x60_I2C_REG_DATA 0x04 |
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index a10bf5a153d5..e45b364e7fcf 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h | |||
@@ -193,5 +193,6 @@ static inline void exit(void) | |||
193 | void *_platform_stack_top = _bss_stack + sizeof(_bss_stack); | 193 | void *_platform_stack_top = _bss_stack + sizeof(_bss_stack); |
194 | 194 | ||
195 | extern unsigned long timebase_period_ns; | 195 | extern unsigned long timebase_period_ns; |
196 | void udelay(long delay); | ||
196 | 197 | ||
197 | #endif /* _PPC_BOOT_OPS_H_ */ | 198 | #endif /* _PPC_BOOT_OPS_H_ */ |
diff --git a/arch/powerpc/boot/prpmc2800.c b/arch/powerpc/boot/prpmc2800.c index f428bac10d4a..5c6cd368056e 100644 --- a/arch/powerpc/boot/prpmc2800.c +++ b/arch/powerpc/boot/prpmc2800.c | |||
@@ -25,8 +25,6 @@ extern char _end[]; | |||
25 | extern char _vmlinux_start[], _vmlinux_end[]; | 25 | extern char _vmlinux_start[], _vmlinux_end[]; |
26 | extern char _dtb_start[], _dtb_end[]; | 26 | extern char _dtb_start[], _dtb_end[]; |
27 | 27 | ||
28 | extern void udelay(long delay); | ||
29 | |||
30 | #define KB 1024U | 28 | #define KB 1024U |
31 | #define MB (KB*KB) | 29 | #define MB (KB*KB) |
32 | #define GB (KB*MB) | 30 | #define GB (KB*MB) |
diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c index 3ce7f651ab34..944f0ee5bc0f 100644 --- a/arch/powerpc/boot/serial.c +++ b/arch/powerpc/boot/serial.c | |||
@@ -19,8 +19,6 @@ | |||
19 | #include "io.h" | 19 | #include "io.h" |
20 | #include "ops.h" | 20 | #include "ops.h" |
21 | 21 | ||
22 | extern void udelay(long delay); | ||
23 | |||
24 | static int serial_open(void) | 22 | static int serial_open(void) |
25 | { | 23 | { |
26 | struct serial_console_data *scdp = console_ops.data; | 24 | struct serial_console_data *scdp = console_ops.data; |