diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 2bae632d3ad7..812c87c73bb6 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -175,8 +175,7 @@ void qe_setbrg(u32 brg, u32 rate) | |||
175 | u32 divisor, tempval; | 175 | u32 divisor, tempval; |
176 | int div16 = 0; | 176 | int div16 = 0; |
177 | 177 | ||
178 | bp = &qe_immr->brg.brgc1; | 178 | bp = &qe_immr->brg.brgc[brg]; |
179 | bp += brg; | ||
180 | 179 | ||
181 | divisor = (get_brg_clk() / rate); | 180 | divisor = (get_brg_clk() / rate); |
182 | if (divisor > QE_BRGC_DIVISOR_MAX + 1) { | 181 | if (divisor > QE_BRGC_DIVISOR_MAX + 1) { |