make legacy ISA probe optional
[linux-2.6-block.git] / drivers / net / ethernet / 8390 / ne.c
index e9756d0ea5b8dc2491df52a4457770a4e7540a1e..d0bbe2180b9e61a0c089c9ad43295da9051726af 100644 (file)
@@ -951,6 +951,7 @@ static int __init ne_init(void)
 }
 module_init(ne_init);
 
+#ifdef CONFIG_NETDEV_LEGACY_INIT
 struct net_device * __init ne_probe(int unit)
 {
        int this_dev;
@@ -991,6 +992,7 @@ struct net_device * __init ne_probe(int unit)
 
        return ERR_PTR(-ENODEV);
 }
+#endif
 #endif /* MODULE */
 
 static void __exit ne_exit(void)