Skip to content

Commit

Permalink
[ARM] 4235/1: ns9xxx: declare the clock functions as "const"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Russell King committed Mar 20, 2007
1 parent 094f127 commit 9d5cf5a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions include/asm-arm/arch-ns9xxx/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
/*
Expand All @@ -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;
}
Expand Down

0 comments on commit 9d5cf5a

Please sign in to comment.