summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2005-10-29 17:28:27 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-29 17:28:27 +0200
commitecbea7a2dae94092db9566bcd1f38535e9b3cde9 (patch)
tree8dab38d4e97e1534c7159c5ec34ef74bb1b06553 /include
parent[ARM] 3050/1: remove ixp2000_reg_write erratum #66 workaround (diff)
downloadlinux-ecbea7a2dae94092db9566bcd1f38535e9b3cde9.tar.xz
linux-ecbea7a2dae94092db9566bcd1f38535e9b3cde9.zip
[ARM] 3051/1: turn ixp2000_reg_read into an inline function
Patch from Lennert Buytenhek Turn ixp2000_reg_read into an inline function. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Deepak Saxena <dsaxena@plexity.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-ixp2000/platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-arm/arch-ixp2000/platform.h b/include/asm-arm/arch-ixp2000/platform.h
index aabeef2454dd..6e5b6a955abe 100644
--- a/include/asm-arm/arch-ixp2000/platform.h
+++ b/include/asm-arm/arch-ixp2000/platform.h
@@ -15,11 +15,15 @@
#ifndef __ASSEMBLY__
+static inline unsigned long ixp2000_reg_read(volatile void *reg)
+{
+ return *((volatile unsigned long *)reg);
+}
+
static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
{
*((volatile unsigned long *)reg) = val;
}
-#define ixp2000_reg_read(reg) (*((volatile unsigned long *)reg))
/*
* Boards may multiplex different devices on the 2nd channel of