Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b05f87172f904b28bd5ac058ebfb4e216b843efe
Commit:     b05f87172f904b28bd5ac058ebfb4e216b843efe
Parent:     07b04595e3630594773223874827f5bbd03fc289
Author:     Matt Reimer <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 12 20:42:52 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Mon Feb 12 22:22:09 2007 +0000

    [ARM] 4168/1: S3C24XX: use defines instead of numbers
    
    Use defines instead of numbers.
    
    Signed-off-by: Matt Reimer <[EMAIL PROTECTED]>
    Acked-by: Ben Dooks <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 include/asm-arm/arch-s3c2410/system.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/asm-arm/arch-s3c2410/system.h 
b/include/asm-arm/arch-s3c2410/system.h
index ecf250d..41aeb73 100644
--- a/include/asm-arm/arch-s3c2410/system.h
+++ b/include/asm-arm/arch-s3c2410/system.h
@@ -23,7 +23,6 @@ void (*s3c24xx_idle)(void);
 
 void s3c24xx_default_idle(void)
 {
-       void __iomem *reg = S3C2410_CLKCON;
        unsigned long tmp;
        int i;
 
@@ -33,16 +32,18 @@ void s3c24xx_default_idle(void)
 
        /* Warning: going into idle state upsets jtag scanning */
 
-       __raw_writel(__raw_readl(reg) | (1<<2), reg);
+       __raw_writel(__raw_readl(S3C2410_CLKCON) | S3C2410_CLKCON_IDLE,
+                    S3C2410_CLKCON);
 
        /* the samsung port seems to do a loop and then unset idle.. */
        for (i = 0; i < 50; i++) {
-               tmp += __raw_readl(reg); /* ensure loop not optimised out */
+               tmp += __raw_readl(S3C2410_CLKCON); /* ensure loop not 
optimised out */
        }
 
        /* this bit is not cleared on re-start... */
 
-       __raw_writel(__raw_readl(reg) & ~(1<<2), reg);
+       __raw_writel(__raw_readl(S3C2410_CLKCON) & ~S3C2410_CLKCON_IDLE,
+                    S3C2410_CLKCON);
 }
 
 static void arch_idle(void)
-
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