(7/42) cs89x0
Subsystems (2)
PATCH 1/1 (7/42) cs89x0
Based on viro NE31-cs89x0
* switched cs89x0 to dynamic allocation
* cs89x0: embedded ->priv
* cs89x0: fixed resource leaks on failure exits
* cs89x0: fixed clobbering on autoprobe
* NB: cs89x0 calls request_region() with very odd arguments. Somebody ought to check WTF is going on there.
drivers/net/Space.c +4 -4
@@ -81,7 +81,7 @@extern int apne_probe (struct net_device *);extern int bionet_probe (struct net_device *);extern int pamsnet_probe (struct net_device *); -extern int cs89x0_probe (struct net_device *dev); +extern struct net_device *cs89x0_probe (int unit);extern int hplance_probe (struct net_device *dev);extern int bagetlance_probe (struct net_device *);extern int mvme147lance_probe (struct net_device *dev);
@@ -238,13 +238,13 @@ #ifdef CONFIG_AT1500 {at1500_probe, 0}, #endif -#ifdef CONFIG_CS89x0 - {cs89x0_probe, 0}, -#endif {NULL, 0}, }; static struct devprobe2 isa_probes2[] __initdata = { +#ifdef CONFIG_CS89x0 + {cs89x0_probe, 0}, +#endif #ifdef CONFIG_AT1700 {at1700_probe, 0}, #endif
drivers/net/cs89x0.c +71 -61
232 lines not on this page · raw message