patch-2.4.26 linux-2.4.26/arch/ppc/kernel/ibm440gp_common.c

Next file: linux-2.4.26/arch/ppc/kernel/ibm440gp_common.h
Previous file: linux-2.4.26/arch/ppc/kernel/head_44x.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/arch/ppc/kernel/ibm440gp_common.c linux-2.4.26/arch/ppc/kernel/ibm440gp_common.c
@@ -25,7 +25,7 @@
 /*
  * Calculate 440GP clocks
  */
-void __init ibm440gp_get_clocks(struct ibm440gp_clocks* p, unsigned int sys_clk, 
+void __init ibm440gp_get_clocks(struct ibm44x_clocks* p, unsigned int sys_clk, 
 	unsigned int ser_clk)
 {
 	u32 cpc0_sys0 = mfdcr(DCRN_CPC0_SYS0);
@@ -68,11 +68,11 @@
     
 	if (cpc0_cr0 & 0x00400000){
 		/* External UART clock */
-		p->uart = ser_clk;
+		p->uart0 = p->uart1 = ser_clk;
 	}
 	else {
 		/* Internal UART clock */    
     		u32 uart_div = ((cpc0_cr0 >> 16) & 0x1f) + 1;
-		p->uart = p->plb / uart_div;
+		p->uart0 = p->uart1 = p->plb / uart_div;
 	}
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)