(4/6) ni52 -- revised probing
Subsystems (2)
PATCH 1/1 (4/6) ni52 -- revised probing
from NE15-ni52 by Al Viro, updated to 2.6.0-test5
* switched ni52 to dynamic allocation
* ni52: embedded ->priv
* ni52: fixed clobbering of everything on autoprobe
+ use free_netdev
drivers/net/Space.c +4 -4
@@ -70,7 +70,7 @@extern int ne3210_probe (struct net_device *);extern int e2100_probe (struct net_device *);extern int ni5010_probe (struct net_device *); -extern int ni52_probe (struct net_device *); +extern struct net_device *ni52_probe (int unit);extern struct net_device *ni65_probe (int unit);extern int sonic_probe (struct net_device *);extern int SK_init (struct net_device *);
@@ -287,13 +287,13 @@ #ifdef CONFIG_NI5010 {ni5010_probe, 0}, #endif -#ifdef CONFIG_NI52 - {ni52_probe, 0}, -#endif {NULL, 0}, }; static struct devprobe2 isa_probes2[] __initdata = { +#ifdef CONFIG_NI52 + {ni52_probe, 0}, +#endif #ifdef CONFIG_NI65 {ni65_probe, 0}, #endif
drivers/net/ni52.c +61 -57
182 lines not on this page · raw message