aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-ns9xxx
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-03-28 17:18:30 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-04-21 20:50:59 +0100
commitfee64d1b55af57d7dba41f554769db83d7a32fde (patch)
tree976c175fc2e8a92a5af1078da43f4f4a2bcd910a /include/asm-arm/arch-ns9xxx
parent235b185ce47ce64793362bd3ae4bcd8afc6b57b8 (diff)
downloadkernel_samsung_smdk4412-fee64d1b55af57d7dba41f554769db83d7a32fde.zip
kernel_samsung_smdk4412-fee64d1b55af57d7dba41f554769db83d7a32fde.tar.gz
kernel_samsung_smdk4412-fee64d1b55af57d7dba41f554769db83d7a32fde.tar.bz2
[ARM] 4292/1: ns9xxx: Make REGGET consistant with REGSET
This implies that REGGET gets a new parameter "var" to allow to hold the actual register value in a variable. Moreover REGGET was broken because it used "field" instead of "reg ## _ ## field" which proves that there are no callers to fix :-) 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/hardware.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-arm/arch-ns9xxx/hardware.h b/include/asm-arm/arch-ns9xxx/hardware.h
index 6819da7..2560055 100644
--- a/include/asm-arm/arch-ns9xxx/hardware.h
+++ b/include/asm-arm/arch-ns9xxx/hardware.h
@@ -51,8 +51,9 @@
~(__REGVAL(reg ## _ ## field, value)))) \
| (__REGVAL(reg ## _ ## field, value))))
-# define REGGET(reg, field) \
- ((reg & (reg ## _ ## field)) / (field & (-field)))
+# define REGGET(var, reg, field) \
+ ((var & (reg ## _ ## field)) / \
+ ((reg ## _ ## field) & (-(reg ## _ ## field))))
#else