diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-10-10 09:51:06 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-18 18:03:48 -0400 |
commit | 6684b4e28247f31543edf86ba785aa87e8fa3b39 (patch) | |
tree | 58c93078ea5a4fe1492172f14d39214ff0066e4e /drivers/net/declance.c | |
parent | da848ec37d9cf9edbe269f8be9b3de52f90d70da (diff) |
[PATCH] declance: Fix mapping of device.
These should really be addresses obtained with ioremap() or some
bus-specific backend, but for now...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/declance.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/declance.c')
-rw-r--r-- | drivers/net/declance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c index 636763b5102e..3af78340d963 100644 --- a/drivers/net/declance.c +++ b/drivers/net/declance.c | |||
@@ -237,7 +237,7 @@ struct lance_init_block { | |||
237 | /* | 237 | /* |
238 | * This works *only* for the ring descriptors | 238 | * This works *only* for the ring descriptors |
239 | */ | 239 | */ |
240 | #define LANCE_ADDR(x) (PHYSADDR(x) >> 1) | 240 | #define LANCE_ADDR(x) (CPHYSADDR(x) >> 1) |
241 | 241 | ||
242 | struct lance_private { | 242 | struct lance_private { |
243 | struct net_device *next; | 243 | struct net_device *next; |
@@ -1102,7 +1102,7 @@ static int __init dec_lance_init(const int type, const int slot) | |||
1102 | /* Setup I/O ASIC LANCE DMA. */ | 1102 | /* Setup I/O ASIC LANCE DMA. */ |
1103 | lp->dma_irq = dec_interrupt[DEC_IRQ_LANCE_MERR]; | 1103 | lp->dma_irq = dec_interrupt[DEC_IRQ_LANCE_MERR]; |
1104 | ioasic_write(IO_REG_LANCE_DMA_P, | 1104 | ioasic_write(IO_REG_LANCE_DMA_P, |
1105 | PHYSADDR(dev->mem_start) << 3); | 1105 | CPHYSADDR(dev->mem_start) << 3); |
1106 | 1106 | ||
1107 | break; | 1107 | break; |
1108 | 1108 | ||