提交 6684b4e2 编写于 作者: R Ralf Baechle 提交者: Jeff Garzik

[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: NRalf Baechle <ralf@linux-mips.org>

 drivers/net/declance.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 da848ec3
...@@ -237,7 +237,7 @@ struct lance_init_block { ...@@ -237,7 +237,7 @@ struct lance_init_block {
/* /*
* This works *only* for the ring descriptors * This works *only* for the ring descriptors
*/ */
#define LANCE_ADDR(x) (PHYSADDR(x) >> 1) #define LANCE_ADDR(x) (CPHYSADDR(x) >> 1)
struct lance_private { struct lance_private {
struct net_device *next; struct net_device *next;
...@@ -1102,7 +1102,7 @@ static int __init dec_lance_init(const int type, const int slot) ...@@ -1102,7 +1102,7 @@ static int __init dec_lance_init(const int type, const int slot)
/* Setup I/O ASIC LANCE DMA. */ /* Setup I/O ASIC LANCE DMA. */
lp->dma_irq = dec_interrupt[DEC_IRQ_LANCE_MERR]; lp->dma_irq = dec_interrupt[DEC_IRQ_LANCE_MERR];
ioasic_write(IO_REG_LANCE_DMA_P, ioasic_write(IO_REG_LANCE_DMA_P,
PHYSADDR(dev->mem_start) << 3); CPHYSADDR(dev->mem_start) << 3);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册