aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/pcnet.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2020-05-17 18:24:12 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2020-06-29 22:36:35 +0200
commitb92b8f48fb47c48b3f9df91ea1009b5789d55e19 (patch)
treeb10e08724d4754cb207583a15062285a8a12d0d4 /drivers/net/pcnet.c
parentb9c52c50905cfd5973418e925e72c3bbefc7eb34 (diff)
downloadu-boot-b92b8f48fb47c48b3f9df91ea1009b5789d55e19.zip
u-boot-b92b8f48fb47c48b3f9df91ea1009b5789d55e19.tar.gz
u-boot-b92b8f48fb47c48b3f9df91ea1009b5789d55e19.tar.bz2
net: pcnet: Drop PCNET_HAS_PROM
All of one PCNET users has this option set, make this default and drop this config option. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/pcnet.c')
-rw-r--r--drivers/net/pcnet.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index c6f080d..edc4dba 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -241,10 +241,7 @@ static int pcnet_probe(struct eth_device *dev, bd_t *bis, int dev_nr)
{
int chip_version;
char *chipname;
-
-#ifdef PCNET_HAS_PROM
int i;
-#endif
/* Reset the PCnet controller */
pcnet_reset(dev);
@@ -279,7 +276,6 @@ static int pcnet_probe(struct eth_device *dev, bd_t *bis, int dev_nr)
PCNET_DEBUG1("AMD %s\n", chipname);
-#ifdef PCNET_HAS_PROM
/*
* In most chips, after a chip reset, the ethernet address is read from
* the station address PROM at the base address and programmed into the
@@ -293,7 +289,6 @@ static int pcnet_probe(struct eth_device *dev, bd_t *bis, int dev_nr)
dev->enetaddr[2 * i] = val & 0x0ff;
dev->enetaddr[2 * i + 1] = (val >> 8) & 0x0ff;
}
-#endif /* PCNET_HAS_PROM */
return 0;
}