(12/42) ne
Subsystems (2)
PATCH 1/1 (12/42) ne
Based on NE36-ne
* switched ne/ne2k_cbus to dynamic allocation
* ne/ne2k_cbus: fixed order of freeing bugs
* ne/ne2k_cbus: fixed resource leaks on failure exits
* ne/ne2k_cbus: fixed clobbering on autoprobe
drivers/net/Space.c +4 -4
@@ -46,7 +46,7 @@extern int ultra32_probe (struct net_device *dev);extern int wd_probe (struct net_device *dev);extern int el2_probe (struct net_device *dev); -extern int ne_probe (struct net_device *dev); +extern struct net_device *ne_probe (int unit);extern int hp_probe (struct net_device *dev);extern int hp_plus_probe (struct net_device *dev);extern struct net_device *express_probe (int unit);
@@ -222,13 +222,13 @@ #ifdef CONFIG_E2100 /* Cabletron E21xx series. */ {e2100_probe, 0}, #endif -#if defined(CONFIG_NE2000) || defined(CONFIG_NE2K_CBUS) /* ISA & PC-9800 CBUS (use ne2k-pci for PCI cards) */ - {ne_probe, 0}, -#endif {NULL, 0}, }; static struct devprobe2 isa_probes2[] __initdata = { +#if defined(CONFIG_NE2000) || defined(CONFIG_NE2K_CBUS) /* ISA & PC-9800 CBUS (use ne2k-pci for PCI cards) */ + {ne_probe, 0}, +#endif #ifdef CONFIG_LANCE /* ISA/VLB (use pcnet32 for PCI cards) */ {lance_probe, 0}, #endif
drivers/net/ne.c +62 -21
138 lines not on this page · raw message
drivers/net/ne2k_cbus.c +75 -32
206 lines not on this page · raw message
drivers/net/ne2k_cbus.h +1 -1
@@ -477,5 +477,5 @@ }#endif -static int ne_probe_cbus (struct net_device *dev,const struct ne2k_cbus_hwinfo *hw,int ioaddr); +static int ne_probe_cbus (struct net_device *dev,const struct ne2k_cbus_hwinfo *hw,int ioaddr,int irq);/* End of ne2k_cbus.h */