Skip to contentSkip to conversation

(14/42) hpplus

PATCH New Stephen Hemminger 1 participant 1 message Nov 13, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (14/42) hpplus

Based on NE38-hpplus
* switched hp-plus to dynamic allocation
* hp-plus: fixed order of freeing bugs
* hp-plus: fixed resource leaks on failure exits
* hp-plus: fixed clobbering on autoprobe

drivers/net/Space.c +4 -4
diff -Nru a/drivers/net/Space.c b/drivers/net/Space.c
@@ -48,7 +48,7 @@
 extern int el2_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 *hp_plus_probe(int unit);
 extern struct net_device *express_probe(int unit);
 extern struct net_device *eepro_probe(int unit);
 extern struct net_device *at1700_probe(int unit);
@@ -216,13 +216,13 @@
 #ifdef CONFIG_HPLAN
 	{hp_probe, 0},
 #endif
-#ifdef CONFIG_HPLAN_PLUS
-	{hp_plus_probe, 0},
-#endif
 	{NULL, 0},
 };
 
 static struct devprobe2 isa_probes2[] __initdata = {
+#ifdef CONFIG_HPLAN_PLUS
+	{hp_plus_probe, 0},
+#endif
 #ifdef CONFIG_E2100		/* Cabletron E21xx series. */
 	{e2100_probe, 0},
 #endif
drivers/net/hp-plus.c +62 -22

140 lines not on this page · raw message