diff options
author | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2008-06-17 13:07:15 +0900 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-07-06 00:23:44 -0700 |
commit | dd7e5fa5f847188f78f62f2c52de6cb3def3ecdb (patch) | |
tree | 87c18e2a219a869830b22abb76081594acb7e2ac | |
parent | dd35479a50f6c7c31ea491c07c5200c6dfd06a24 (diff) | |
download | u-boot-imx-dd7e5fa5f847188f78f62f2c52de6cb3def3ecdb.zip u-boot-imx-dd7e5fa5f847188f78f62f2c52de6cb3def3ecdb.tar.gz u-boot-imx-dd7e5fa5f847188f78f62f2c52de6cb3def3ecdb.tar.bz2 |
net: ne2000: Fix compile error of NE2000
If enable DEBUG, can not compile ne2000 driver.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
-rw-r--r-- | drivers/net/ne2000.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c index 2da57b6..eab3dd5 100644 --- a/drivers/net/ne2000.c +++ b/drivers/net/ne2000.c @@ -769,14 +769,14 @@ static void pcnet_reset_8390(void) { int i, r; - PRINTK("nic base is %lx\n", nic_base); + PRINTK("nic base is %lx\n", nic.base); n2k_outb(E8390_NODMA + E8390_PAGE0+E8390_STOP, E8390_CMD); - PRINTK("cmd (at %lx) is %x\n", nic_base + E8390_CMD, n2k_inb(E8390_CMD)); + PRINTK("cmd (at %lx) is %x\n", nic.base + E8390_CMD, n2k_inb(E8390_CMD)); n2k_outb(E8390_NODMA+E8390_PAGE1+E8390_STOP, E8390_CMD); - PRINTK("cmd (at %lx) is %x\n", nic_base + E8390_CMD, n2k_inb(E8390_CMD)); + PRINTK("cmd (at %lx) is %x\n", nic.base + E8390_CMD, n2k_inb(E8390_CMD)); n2k_outb(E8390_NODMA+E8390_PAGE0+E8390_STOP, E8390_CMD); - PRINTK("cmd (at %lx) is %x\n", nic_base + E8390_CMD, n2k_inb(E8390_CMD)); + PRINTK("cmd (at %lx) is %x\n", nic.base + E8390_CMD, n2k_inb(E8390_CMD)); n2k_outb(E8390_NODMA+E8390_PAGE0+E8390_STOP, E8390_CMD); n2k_outb(n2k_inb(PCNET_RESET), PCNET_RESET); @@ -852,8 +852,6 @@ int __get_prom(u8* mac_addr) return 0; } -u32 nic_base; - /* U-boot specific routines */ static u8 *pbuf = NULL; @@ -901,7 +899,6 @@ int eth_init(bd_t *bd) { } #endif - nic_base = CONFIG_DRIVER_NE2000_BASE; nic.base = (u8 *) CONFIG_DRIVER_NE2000_BASE; r = get_prom(dev_addr); |