aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/natsemi
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-09-13 03:30:25 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-21 15:31:35 -0400
commitce43aa6c142d69820a267431ea342d1bd9f6d3ce (patch)
tree65f1f4b3d0e4acc55f282e11eebb3e14fd959fbf /drivers/net/ethernet/natsemi
parent0c070900f64ef37daf198eea5ef778eb8dba5020 (diff)
macmace, macsonic: cleanup
We check ether_type before registering the platform device in arch/m68k/mac/config.c. Doing the same test again in the driver is redundant so remove it. Multiple probes should not happen since the conversion to platform devices, so lose that test too. Then macmace.c need not include macintosh.h, so remove that and irq.h and include linux/interrupt.h explicitly. Tested on PowerBook 520, Quadra 660av, LC 630. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/natsemi')
-rw-r--r--drivers/net/ethernet/natsemi/macsonic.c9
1 files changed, 0 insertions, 9 deletions
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