Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / arch / ppc / syslib / ibm440gp_common.c
index d1ce143..fbaae5f 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * arch/ppc/syslib/ibm440gp_common.c
- *
  * PPC440GP system library
  *
  * Matt Porter <mporter@mvista.com>
@@ -30,7 +28,8 @@ void __init ibm440gp_get_clocks(struct ibm44x_clocks* p,
 {
        u32 cpc0_sys0 = mfdcr(DCRN_CPC0_SYS0);
        u32 cpc0_cr0 = mfdcr(DCRN_CPC0_CR0);
-       u32 opdv, epdv;
+       u32 opdv = ((cpc0_sys0 >> 10) & 0x3) + 1;
+       u32 epdv = ((cpc0_sys0 >> 8) & 0x3) + 1;
 
        if (cpc0_sys0 & 0x2){
                /* Bypass system PLL */
@@ -60,9 +59,6 @@ void __init ibm440gp_get_clocks(struct ibm44x_clocks* p,
                p->plb = vco / fwdvb;
        }
 
-       opdv = ((cpc0_sys0 >> 10) & 0x3) + 1;
-       epdv = ((cpc0_sys0 >> 8) & 0x3) + 1;
-
        p->opb = p->plb / opdv;
        p->ebc = p->opb / epdv;