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>
This commit is contained in:

committed by
David S. Miller

parent
c46064b4e8
commit
01c6505d60
@@ -270,7 +270,7 @@ static int grpci2_cfg_r32(struct grpci2_priv *priv, unsigned int bus,
|
||||
*val = 0xffffffff;
|
||||
} else {
|
||||
/* Bus always little endian (unaffected by byte-swapping) */
|
||||
*val = flip_dword(tmp);
|
||||
*val = swab32(tmp);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -328,7 +328,7 @@ static int grpci2_cfg_w32(struct grpci2_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));
|
||||
|
||||
/* Wait until GRPCI2 signals that CFG access is done, it should be
|
||||
* done instantaneously unless a DMA operation is ongoing...
|
||||
|
Reference in New Issue
Block a user