diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-03 16:10:47 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-03 16:10:47 +0000 |
commit | 8eed7abf4186c92a1177971a6fa435fcd3ca7e6f (patch) | |
tree | ff511aeef7ff8bffba7e866890a191f71fe0a3d0 /target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c | |
parent | db72b8cfc10b33ea74f7b6ef2781d3f34c2cd279 (diff) |
[mcs814x] more convertions to {read,write}_relaxed I/O accessors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33604 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c')
-rw-r--r-- | target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c index 3606fe84e..9ac5c46d6 100644 --- a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c +++ b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/pci.c @@ -116,11 +116,11 @@ static int mcs8140_pci_read_config(struct pci_bus *bus, if (addr != 0) { switch (size) { case 1: - v = __raw_readb(addr); + v = readb_relaxed(addr); break; case 2: addr &= ~1; - v = __raw_readw(addr); + v = readw_relaxed(addr); break; default: addr &= ~3; @@ -155,10 +155,10 @@ static int mcs8140_pci_write_config(struct pci_bus *bus, if (addr != 0) { switch (size) { case 1: - __raw_writeb((u8)val, addr); + writeb_relaxed((u8)val, addr); break; case 2: - __raw_writew((u16)val, addr); + writew_relaxed((u16)val, addr); break; case 4: writel_relaxed(val, addr); |