(31/42) mac89x0
Subsystems (2)
PATCH 1/1 (31/42) mac89x0
NE56-mac8390
* switched mac8390 to dynamic allocation
* mac8390: fixed resource leaks on failure exits
drivers/net/Space.c +6 -1
@@ -89,7 +89,7 @@extern int mace_probe (struct net_device *dev);extern int macsonic_probe (struct net_device *dev);extern int mac8390_probe (struct net_device *dev); -extern int mac89x0_probe (struct net_device *dev); +extern struct net_device *mac89x0_probe (int unit);extern struct net_device *mc32_probe (int unit);extern struct net_device *cops_probe (int unit);extern struct net_device *ltpc_probe (void );
@@ -329,6 +329,10 @@ #ifdef CONFIG_MAC8390 /* NuBus NS8390-based cards */ {mac8390_probe, 0}, #endif + {NULL, 0}, +}; + +static struct devprobe2 m68k_probes2[] __initdata = { #ifdef CONFIG_MAC89x0 {mac89x0_probe, 0}, #endif
@@ -391,6 +395,7 @@if (base_addr ==1 )return ; +probe_list2 (unit, m68k_probes2, base_addr ==0 ) &&probe_list2 (unit, mips_probes, base_addr ==0 ) &&probe_list2 (unit, eisa_probes, base_addr ==0 ) && probe_list2(unit, mca_probes, base_addr == 0) &&
drivers/net/mac89x0.c +34 -43
157 lines not on this page · raw message