summaryrefslogtreecommitdiffstats
path: root/drivers/net/macb.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-12-08 14:38:30 +0100
committerJeff Garzik <jeff@garzik.org>2006-12-11 09:31:28 -0500
commit0f0d84e52cb2a6e0b1d101484a92121410135da1 (patch)
tree995b2a031e041b4673700904840511da476814f2 /drivers/net/macb.h
parentd836cae4f683211f14c1fd8184f478622b185164 (diff)
downloadlinux-stable-0f0d84e52cb2a6e0b1d101484a92121410135da1.tar.gz
linux-stable-0f0d84e52cb2a6e0b1d101484a92121410135da1.tar.bz2
linux-stable-0f0d84e52cb2a6e0b1d101484a92121410135da1.zip
[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>
Diffstat (limited to 'drivers/net/macb.h')
-rw-r--r--drivers/net/macb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/macb.h b/drivers/net/macb.h
index e3fcb2e06fdc..27bf0ae0f0bb 100644
--- a/drivers/net/macb.h
+++ b/drivers/net/macb.h
@@ -250,9 +250,9 @@
/* Register access macros */
#define macb_readl(port,reg) \
- readl((port)->regs + MACB_##reg)
+ __raw_readl((port)->regs + MACB_##reg)
#define macb_writel(port,reg,value) \
- writel((value), (port)->regs + MACB_##reg)
+ __raw_writel((value), (port)->regs + MACB_##reg)
struct dma_desc {
u32 addr;