diff options
author | Oskar Schirmer <oskar@linutronix.de> | 2011-02-17 15:43:00 (GMT) |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-11 09:06:06 (GMT) |
commit | 25d7a6003b5c76b735fdfc3dc5030d9d9c93844e (patch) | |
tree | 900c037d25bbaf88c0ef57dda0a02cf152142b09 /arch/arm/mach-tcc8k | |
parent | fe03a9f7bb89e920e60fd1bb074adab2eed2bf48 (diff) | |
download | linux-25d7a6003b5c76b735fdfc3dc5030d9d9c93844e.tar.xz |
arm: tcc8k: Avoid reading clock register twice
There is no reason why in case of PLL2 the configuration register
should be read twice, while for PLL0/1 using the value previously read
is used. Do the same for PLL2.
Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/mach-tcc8k')
-rw-r--r-- | arch/arm/mach-tcc8k/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tcc8k/clock.c b/arch/arm/mach-tcc8k/clock.c index 7ebcbff..a25e3fc 100644 --- a/arch/arm/mach-tcc8k/clock.c +++ b/arch/arm/mach-tcc8k/clock.c @@ -199,7 +199,7 @@ static unsigned long get_rate_pll_div(int pll) addr = CKC_BASE + CLKDIVC1_OFFS; reg = __raw_readl(addr); if (reg & CLKDIVC1_P2E) - div = __raw_readl(addr) & 0x3f; + div = reg & 0x3f; break; } return get_rate_pll(pll) / (div + 1); |