[PATCH] MACB: Use __raw register access
Since macb is a chip-internal device, use __raw_readl and __raw_writel instead of readl/writel. This will perform native-endian accesses, which is the right thing to do on both AVR32 and ARM devices. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
d836cae4f6
commit
0f0d84e52c
@@ -264,7 +264,7 @@ static void macb_update_stats(struct macb *bp)
|
||||
WARN_ON((unsigned long)(end - p - 1) != (MACB_TPF - MACB_PFR) / 4);
|
||||
|
||||
for(; p < end; p++, reg++)
|
||||
*p += readl(reg);
|
||||
*p += __raw_readl(reg);
|
||||
}
|
||||
|
||||
static void macb_periodic_task(struct work_struct *work)
|
||||
|
Reference in New Issue
Block a user