summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c515.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/3c515.c')
-rw-r--r--drivers/net/3c515.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c
index 4bd49bfe9..80021d00a 100644
--- a/drivers/net/3c515.c
+++ b/drivers/net/3c515.c
@@ -363,8 +363,9 @@ struct corkscrew_isapnp_adapters_struct corkscrew_isapnp_adapters[] = {
int corkscrew_isapnp_phys_addr[3] = {
0, 0, 0
};
-#endif
+
static int nopnp = 0;
+#endif
static int corkscrew_scan(struct net_device *dev);
static struct net_device *corkscrew_found_device(struct net_device *dev,
@@ -439,9 +440,11 @@ int tc515_probe(struct net_device *dev)
static int corkscrew_scan(struct net_device *dev)
{
int cards_found = 0;
- short i;
static int ioaddr;
+#ifdef __ISAPNP__
+ short i;
static int pnp_cards = 0;
+#endif
#ifdef __ISAPNP__
if(nopnp == 1)