[ARM] 3474/1: S3C2440: USB rate writes wrong var to CLKDIVN
authorBen Dooks <ben-linux@fluff.org>
Tue, 11 Apr 2006 17:20:06 +0000 (18:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Apr 2006 17:20:06 +0000 (18:20 +0100)
Patch from Ben Dooks

The wrong variable is written back to CLKDIVN
register if the USB PLL speed is above 94MHz

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c2410/s3c2440-clock.c

index 57a15974d4b50aaded6667882e4004b459cca878..d7a30ed6c327eb57d2f3c4ff454939a70f6129fd 100644 (file)
@@ -139,7 +139,7 @@ static int s3c2440_clk_add(struct sys_device *sysdev)
 
                clkdivn = __raw_readl(S3C2410_CLKDIVN);
                clkdivn |= S3C2440_CLKDIVN_UCLK;
-               __raw_writel(camdivn, S3C2410_CLKDIVN);
+               __raw_writel(clkdivn, S3C2410_CLKDIVN);
 
                mutex_unlock(&clocks_mutex);
        }