(05/12) Probe2 -- ni5010
Subsystems (2)
PATCH 1/1 (05/12) Probe2 -- ni5010
from viro NE16-ni5010
* switched ni5010 to dynamic allocation
* ni5010: embedded ->priv
* ni5010: fixed clobbering ->irq
* ni5010: fixed IO before request_region()
Additional:
* add free_netdev
drivers/net/Space.c +4 -4
@@ -68,7 +68,7 @@extern int es_probe (struct net_device *);extern int lne390_probe (struct net_device *);extern int e2100_probe (struct net_device *); -extern int ni5010_probe (struct net_device *); +extern struct net_device *ni5010_probe (int unit);extern struct net_device *ni52_probe (int unit);extern struct net_device *ni65_probe (int unit);extern int sonic_probe (struct net_device *);
@@ -280,13 +280,13 @@ #ifdef CONFIG_SK_G16 {SK_init, 0}, #endif -#ifdef CONFIG_NI5010 - {ni5010_probe, 0}, -#endif {NULL, 0}, }; static struct devprobe2 isa_probes2[] __initdata = { +#ifdef CONFIG_NI5010 + {ni5010_probe, 0}, +#endif #ifdef CONFIG_NI52 {ni52_probe, 0}, #endif
drivers/net/ni5010.c +94 -90
344 lines not on this page · raw message