diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-04-16 20:37:24 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-16 20:37:24 -0400 |
commit | 48dd59e398455b58910910bc272e0da85f11bd98 (patch) | |
tree | e26aa115aefd71e89d55003213983542b9ed71ff /drivers/net/tulip | |
parent | dc13b385999f163dc30c73d66f2ac6d67410528d (diff) |
[netdrvr] tulip/winbond-840: don't let tulip.h symbol stomp ours
winbond-840 shares tulip.h with the tulip driver, because they share
many (but not all) of the same register definitions.
This is useful for the register definitions, but not helpful when it
comes to symbols that are shared among the tulip driver's C modules,
but not meant to be shared outside that one driver.
Thus, PKT_BUF_SZ is a symbol internal to tulip, but it was intruding
upon a similar symbol in winbond-840's namespace. This was not a
problem as long as the two symbols had the same value, but upcoming
patches result in differing symbol values.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 35d0cfcf8c47..50068194c163 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -107,8 +107,6 @@ static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; | |||
107 | /* Time in jiffies before concluding the transmitter is hung. */ | 107 | /* Time in jiffies before concluding the transmitter is hung. */ |
108 | #define TX_TIMEOUT (2*HZ) | 108 | #define TX_TIMEOUT (2*HZ) |
109 | 109 | ||
110 | #define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/ | ||
111 | |||
112 | /* Include files, designed to support most kernel versions 2.0.0 and later. */ | 110 | /* Include files, designed to support most kernel versions 2.0.0 and later. */ |
113 | #include <linux/module.h> | 111 | #include <linux/module.h> |
114 | #include <linux/kernel.h> | 112 | #include <linux/kernel.h> |
@@ -137,6 +135,9 @@ static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; | |||
137 | 135 | ||
138 | #include "tulip.h" | 136 | #include "tulip.h" |
139 | 137 | ||
138 | #undef PKT_BUF_SZ /* tulip.h also defines this */ | ||
139 | #define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/ | ||
140 | |||
140 | /* These identify the driver base version and may not be removed. */ | 141 | /* These identify the driver base version and may not be removed. */ |
141 | static char version[] = | 142 | static char version[] = |
142 | KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE " Donald Becker <becker@scyld.com>\n" | 143 | KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE " Donald Becker <becker@scyld.com>\n" |