Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fee64d1b55af57d7dba41f554769db83d7a32fde
Commit:     fee64d1b55af57d7dba41f554769db83d7a32fde
Parent:     235b185ce47ce64793362bd3ae4bcd8afc6b57b8
Author:     Uwe Kleine-König <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 28 17:18:30 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sat Apr 21 20:50:59 2007 +0100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 include/asm-arm/arch-ns9xxx/hardware.h |    5 +++--
 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
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to