From 5f2093b0eda530a1915e74cef955cf6b0f708244 Mon Sep 17 00:00:00 2001 From: Lennert Buytenhek Date: Sat, 29 Oct 2005 16:28:27 +0100 Subject: [PATCH] --- yaml --- r: 11305 b: refs/heads/master c: ecbea7a2dae94092db9566bcd1f38535e9b3cde9 h: refs/heads/master i: 11303: f041cfb4fe39dfedacfc37a858038432826c7696 v: v3 --- [refs] | 2 +- trunk/include/asm-arm/arch-ixp2000/platform.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ecf082b93ae7..2d841e61ae84 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 931db7d6880027bb2b6b0cb78a488ab1486e28b7 +refs/heads/master: ecbea7a2dae94092db9566bcd1f38535e9b3cde9 diff --git a/trunk/include/asm-arm/arch-ixp2000/platform.h b/trunk/include/asm-arm/arch-ixp2000/platform.h index aabeef2454dd..6e5b6a955abe 100644 --- a/trunk/include/asm-arm/arch-ixp2000/platform.h +++ b/trunk/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