summaryrefslogtreecommitdiff
path: root/drivers/net/ne2000.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-06-17 13:07:11 +0900
committerBen Warren <biggerbadderben@gmail.com>2008-07-06 00:23:44 -0700
commitcbb6289569ae4fc6e2d676528e46ffcc72d743d0 (patch)
treedf7519cf709dd5948260e80944331208c4d89aa9 /drivers/net/ne2000.c
parentdd7e5fa5f847188f78f62f2c52de6cb3def3ecdb (diff)
downloadu-boot-imx-cbb6289569ae4fc6e2d676528e46ffcc72d743d0.zip
u-boot-imx-cbb6289569ae4fc6e2d676528e46ffcc72d743d0.tar.gz
u-boot-imx-cbb6289569ae4fc6e2d676528e46ffcc72d743d0.tar.bz2
net: ne2000: Move dev_addr variable from grobal to local.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/ne2000.c')
-rw-r--r--drivers/net/ne2000.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c
index eab3dd5..ec92485 100644
--- a/drivers/net/ne2000.c
+++ b/drivers/net/ne2000.c
@@ -758,8 +758,6 @@ static hw_info_t hw_info[] = {
#define NR_INFO (sizeof(hw_info)/sizeof(hw_info_t))
-u8 dev_addr[6];
-
#define PCNET_CMD 0x00
#define PCNET_DATAPORT 0x10 /* NatSemi-defined port window offset. */
#define PCNET_RESET 0x1f /* Issue a read to reset, a write to clear. */
@@ -877,6 +875,7 @@ void uboot_push_tx_done(int key, int val) {
int eth_init(bd_t *bd) {
int r;
+ u8 dev_addr[6];
char ethaddr[20];
PRINTK("### eth_init\n");