diff options
| author | Marek Vasut <[email protected]> | 2020-04-18 02:32:19 +0200 |
|---|---|---|
| committer | marex <[email protected]> | 2020-05-01 12:35:21 +0200 |
| commit | 3c0bcb97d6d7ed7f9b4c46eb2a6dd0e910214faf (patch) | |
| tree | 6aea17d0f14a989b1fca946ee9a770a341c9792e | |
| parent | 171f5e580e3388090d589aa4c0f123576948ab52 (diff) | |
net: pcnet: Replace mips-specific accessors
Replace mips-specific UNCACHED_SDRAM() macro with standard
map_physmem(), which permits the driver to work on other
systems than mips.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Cc: Joe Hershberger <[email protected]>
| -rw-r--r-- | drivers/net/pcnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 59241c95bcd..e7d6c8d714c 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -332,7 +332,9 @@ static int pcnet_init(struct eth_device *dev, bd_t *bis) addr = (unsigned long)memalign(ARCH_DMA_MINALIGN, sizeof(*lp->uc)); flush_dcache_range(addr, addr + sizeof(*lp->uc)); - addr = UNCACHED_SDRAM(addr); + addr = (unsigned long)map_physmem(addr, + roundup(sizeof(*lp->uc), ARCH_DMA_MINALIGN), + MAP_NOCACHE); lp->uc = (struct pcnet_uncached_priv *)addr; addr = (unsigned long)memalign(ARCH_DMA_MINALIGN, |
