Skip to content

Commit

Permalink
[PATCH] declance: Fix mapping of device.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ralfbaechle authored and jgarzik committed Oct 18, 2005
1 parent da848ec commit 6684b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/declance.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct lance_init_block {
/*
* 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 net_device *next;
Expand Down Expand Up @@ -1102,7 +1102,7 @@ static int __init dec_lance_init(const int type, const int slot)
/* Setup I/O ASIC LANCE DMA. */
lp->dma_irq = dec_interrupt[DEC_IRQ_LANCE_MERR];
ioasic_write(IO_REG_LANCE_DMA_P,
PHYSADDR(dev->mem_start) << 3);
CPHYSADDR(dev->mem_start) << 3);

break;

Expand Down

0 comments on commit 6684b4e

Please sign in to comment.