diff options
author | Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> | 2007-02-23 14:52:19 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-03-20 13:22:23 -0400 |
commit | 9d5cf5adcbb703a4c794232840c25a65a372c357 (patch) | |
tree | bb77fb19d4eb8fa768cfb49ca7e9a2c674f34daa /include/asm-arm/arch-ns9xxx | |
parent | 094f127588679591a871eb20b136f6b2f2796c98 (diff) |
[ARM] 4235/1: ns9xxx: declare the clock functions as "const"
This patch removes some "const"s that I introduced thinking they mean
the same thing as the "const"s introduced here. So it fixes three warnings.
Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-ns9xxx')
-rw-r--r-- | include/asm-arm/arch-ns9xxx/clock.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/asm-arm/arch-ns9xxx/clock.h b/include/asm-arm/arch-ns9xxx/clock.h index 4371a485db4..a7c5ab3d901 100644 --- a/include/asm-arm/arch-ns9xxx/clock.h +++ b/include/asm-arm/arch-ns9xxx/clock.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #ifndef __ASM_ARCH_CLOCK_H | 11 | #ifndef __ASM_ARCH_CLOCK_H |
12 | #define __ASM_ARCH_CLOCK_H | 12 | #define __ASM_ARCH_CLOCK_H |
13 | 13 | ||
14 | static inline u32 ns9xxx_systemclock(void) __attribute__((const)); | ||
14 | static inline u32 ns9xxx_systemclock(void) | 15 | static inline u32 ns9xxx_systemclock(void) |
15 | { | 16 | { |
16 | /* | 17 | /* |
@@ -19,17 +20,20 @@ static inline u32 ns9xxx_systemclock(void) | |||
19 | return 353894400; | 20 | return 353894400; |
20 | } | 21 | } |
21 | 22 | ||
22 | static inline const u32 ns9xxx_cpuclock(void) | 23 | static inline u32 ns9xxx_cpuclock(void) __attribute__((const)); |
24 | static inline u32 ns9xxx_cpuclock(void) | ||
23 | { | 25 | { |
24 | return ns9xxx_systemclock() / 2; | 26 | return ns9xxx_systemclock() / 2; |
25 | } | 27 | } |
26 | 28 | ||
27 | static inline const u32 ns9xxx_ahbclock(void) | 29 | static inline u32 ns9xxx_ahbclock(void) __attribute__((const)); |
30 | static inline u32 ns9xxx_ahbclock(void) | ||
28 | { | 31 | { |
29 | return ns9xxx_systemclock() / 4; | 32 | return ns9xxx_systemclock() / 4; |
30 | } | 33 | } |
31 | 34 | ||
32 | static inline const u32 ns9xxx_bbusclock(void) | 35 | static inline u32 ns9xxx_bbusclock(void) __attribute__((const)); |
36 | static inline u32 ns9xxx_bbusclock(void) | ||
33 | { | 37 | { |
34 | return ns9xxx_systemclock() / 8; | 38 | return ns9xxx_systemclock() / 8; |
35 | } | 39 | } |