diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2020-04-18 01:44:12 +0200 |
---|---|---|
committer | marex <marex@desktop.lan> | 2020-05-01 12:35:20 +0200 |
commit | 635a76b703f3bd5b20e28bfc86caee9889f536c2 (patch) | |
tree | fe16ce90fff13a127cfabf9d22e586032ac4926f /drivers/net | |
parent | f2c5564f7552369e2d5648eb8ac2e1164755c8f7 (diff) |
net: pcnet: Remove CONFIG_PCNET_79C97x
These macros guard one switch-case statement, which grows mips malta
by some 20 bytes if debug is enabled, and even less if it is not. To
make the code simpler, just support all the NICs and be done with it.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pcnet.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index b4ad11d3fa..59241c95bc 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -21,10 +21,6 @@ #define PCNET_DEBUG2(fmt,args...) \ debug_cond(PCNET_DEBUG_LEVEL > 1, fmt ,##args) -#if !defined(CONF_PCNET_79C973) && defined(CONF_PCNET_79C975) -#error "Macro for PCnet chip version is not defined!" -#endif - /* * Set the number of Tx and Rx buffers, using Log_2(# buffers). * Reasonable default values are 4 Tx buffers, and 16 Rx buffers. @@ -254,16 +250,12 @@ static int pcnet_probe(struct eth_device *dev, bd_t *bis, int dev_nr) case 0x2621: chipname = "PCnet/PCI II 79C970A"; /* PCI */ break; -#ifdef CONFIG_PCNET_79C973 case 0x2625: chipname = "PCnet/FAST III 79C973"; /* PCI */ break; -#endif -#ifdef CONFIG_PCNET_79C975 case 0x2627: chipname = "PCnet/FAST III 79C975"; /* PCI */ break; -#endif default: printf("%s: PCnet version %#x not supported\n", dev->name, chip_version); |