[PATCH][MIPS] fix pb1500 reg B access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ralf,

I think that au_readl() is correct here.

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@xxxxxxxxxxxxxx>

diff -pruN -X generic/Documentation/dontdiff generic-orig/arch/mips/au1000/pb1500/board_setup.c generic/arch/mips/au1000/pb1500/board_setup.c
--- generic-orig/arch/mips/au1000/pb1500/board_setup.c	2007-03-23 11:00:22.474631250 +0900
+++ generic/arch/mips/au1000/pb1500/board_setup.c	2007-03-23 17:09:27.070322250 +0900
@@ -125,7 +125,7 @@ void __init board_setup(void)
 		au_writel((au_readl(0xac000028) | 0x20), 0xac000028);
 	}
 	/* Put the clock in BCD mode */
-	if (readl(0xac00002C) & 0x4) { /* reg B */
+	if (au_readl(0xac00002C) & 0x4) { /* reg B */
 		au_writel(au_readl(0xac00002c) & ~0x4, 0xac00002c);
 		au_sync();
 	}


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux