summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/leon_pci_grpci1.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2014-04-26 09:57:35 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-02 01:30:21 -0400
commit01c6505d602f47d93209f82bd652329d0e17eeb0 (patch)
treeb204d12bd2b91922993dc20dc01e8a2b0beda2d3 /arch/sparc/kernel/leon_pci_grpci1.c
parentc46064b4e8fecc469ec2fa606ad0cccf4d2e49c0 (diff)
sparc32: replace flip_dword() with swab32()
The latter is a generic implmentation. flip_{,d}word() is sparc32 specific and will be dropped. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/leon_pci_grpci1.c')
-rw-r--r--arch/sparc/kernel/leon_pci_grpci1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index 97cba4d11f66..c8bf26edfa7c 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -144,7 +144,7 @@ static int grpci1_cfg_r32(struct grpci1_priv *priv, unsigned int bus,
grpci1_cfg_w32(priv, TGT, 0, PCI_COMMAND, tmp);
} else {
/* Bus always little endian (unaffected by byte-swapping) */
- *val = flip_dword(tmp);
+ *val = swab32(tmp);
}
return 0;
@@ -197,7 +197,7 @@ static int grpci1_cfg_w32(struct grpci1_priv *priv, unsigned int bus,
pci_conf = (unsigned int *) (priv->pci_conf |
(devfn << 8) | (where & 0xfc));
- LEON3_BYPASS_STORE_PA(pci_conf, flip_dword(val));
+ LEON3_BYPASS_STORE_PA(pci_conf, swab32(val));
return 0;
}