diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-09-08 09:51:05 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-09-08 09:51:05 +0000 |
commit | 2daf0ae2046f31ef96f2a413955032e0cded60f1 (patch) | |
tree | 61a81d8d65835646b47deeba086f086a431e6a4e /target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c | |
parent | 406c2c85c7aec1847bec4f34c918fbe3f8fa31a6 (diff) | |
download | upstream-2daf0ae2046f31ef96f2a413955032e0cded60f1.tar.gz upstream-2daf0ae2046f31ef96f2a413955032e0cded60f1.tar.bz2 upstream-2daf0ae2046f31ef96f2a413955032e0cded60f1.zip |
[mcs814x] use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33330 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c')
-rw-r--r-- | target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c index 4a42086046..d874e71a1b 100644 --- a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c +++ b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c @@ -112,7 +112,7 @@ static inline u32 nuport_mac_readl(void __iomem *reg) { - return __raw_readl(reg); + return readl_relaxed(reg); } static inline u8 nuport_mac_readb(void __iomem *reg) @@ -122,12 +122,12 @@ static inline u8 nuport_mac_readb(void __iomem *reg) static inline void nuport_mac_writel(u32 value, void __iomem *reg) { - __raw_writel(value, reg); + writel_relaxed(value, reg); } static inline void nuport_mac_writeb(u8 value, void __iomem *reg) { - __raw_writel(value, reg); + writel_relaxed(value, reg); } /* MAC private data */ |