aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/apple/macmace.c9
-rw-r--r--drivers/net/ethernet/natsemi/macsonic.c9
2 files changed, 1 insertions, 17 deletions
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c
index 6cd3f8646dcd..7cf81bbffe0e 100644
--- a/drivers/net/ethernet/apple/macmace.c
+++ b/drivers/net/ethernet/apple/macmace.c
@@ -31,9 +31,8 @@
31#include <linux/dma-mapping.h> 31#include <linux/dma-mapping.h>
32#include <linux/platform_device.h> 32#include <linux/platform_device.h>
33#include <linux/gfp.h> 33#include <linux/gfp.h>
34#include <linux/interrupt.h>
34#include <asm/io.h> 35#include <asm/io.h>
35#include <asm/irq.h>
36#include <asm/macintosh.h>
37#include <asm/macints.h> 36#include <asm/macints.h>
38#include <asm/mac_psc.h> 37#include <asm/mac_psc.h>
39#include <asm/page.h> 38#include <asm/page.h>
@@ -203,14 +202,8 @@ static int __devinit mace_probe(struct platform_device *pdev)
203 unsigned char *addr; 202 unsigned char *addr;
204 struct net_device *dev; 203 struct net_device *dev;
205 unsigned char checksum = 0; 204 unsigned char checksum = 0;
206 static int found = 0;
207 int err; 205 int err;
208 206
209 if (found || macintosh_config->ether_type != MAC_ETHER_MACE)
210 return -ENODEV;
211
212 found = 1; /* prevent 'finding' one on every device probe */
213
214 dev = alloc_etherdev(PRIV_BYTES); 207 dev = alloc_etherdev(PRIV_BYTES);
215 if (!dev) 208 if (!dev)
216 return -ENOMEM; 209 return -ENOMEM;
diff --git a/drivers/net/ethernet/natsemi/macsonic.c b/drivers/net/ethernet/natsemi/macsonic.c
index 5c36948e54d7..a2eacbfb4252 100644
--- a/drivers/net/ethernet/natsemi/macsonic.c
+++ b/drivers/net/ethernet/natsemi/macsonic.c
@@ -313,22 +313,13 @@ static void __devinit mac_onboard_sonic_ethernet_addr(struct net_device *dev)
313 313
314static int __devinit mac_onboard_sonic_probe(struct net_device *dev) 314static int __devinit mac_onboard_sonic_probe(struct net_device *dev)
315{ 315{
316 /* Bwahahaha */
317 static int once_is_more_than_enough;
318 struct sonic_local* lp = netdev_priv(dev); 316 struct sonic_local* lp = netdev_priv(dev);
319 int sr; 317 int sr;
320 int commslot = 0; 318 int commslot = 0;
321 319
322 if (once_is_more_than_enough)
323 return -ENODEV;
324 once_is_more_than_enough = 1;
325
326 if (!MACH_IS_MAC) 320 if (!MACH_IS_MAC)
327 return -ENODEV; 321 return -ENODEV;
328 322
329 if (macintosh_config->ether_type != MAC_ETHER_SONIC)
330 return -ENODEV;
331
332 printk(KERN_INFO "Checking for internal Macintosh ethernet (SONIC).. "); 323 printk(KERN_INFO "Checking for internal Macintosh ethernet (SONIC).. ");
333 324
334 /* Bogus probing, on the models which may or may not have 325 /* Bogus probing, on the models which may or may not have