]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4235/1: ns9xxx: declare the clock functions as "const"
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Fri, 23 Feb 2007 19:52:19 +0000 (20:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Mar 2007 17:22:23 +0000 (17:22 +0000)
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>
include/asm-arm/arch-ns9xxx/clock.h

index 4371a485db479f2b7430f1fd1e33a47e58d7de5c..a7c5ab3d90116088d381f48b567d7cec191233f4 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
+static inline u32 ns9xxx_systemclock(void) __attribute__((const));
 static inline u32 ns9xxx_systemclock(void)
 {
        /*
@@ -19,17 +20,20 @@ static inline u32 ns9xxx_systemclock(void)
        return 353894400;
 }
 
-static inline const u32 ns9xxx_cpuclock(void)
+static inline u32 ns9xxx_cpuclock(void) __attribute__((const));
+static inline u32 ns9xxx_cpuclock(void)
 {
        return ns9xxx_systemclock() / 2;
 }
 
-static inline const u32 ns9xxx_ahbclock(void)
+static inline u32 ns9xxx_ahbclock(void) __attribute__((const));
+static inline u32 ns9xxx_ahbclock(void)
 {
        return ns9xxx_systemclock() / 4;
 }
 
-static inline const u32 ns9xxx_bbusclock(void)
+static inline u32 ns9xxx_bbusclock(void) __attribute__((const));
+static inline u32 ns9xxx_bbusclock(void)
 {
        return ns9xxx_systemclock() / 8;
 }