Skip to contentSkip to conversation

Ethernet driver for EISA only SNI RM200/RM400 machines

PATCH In review Thomas Bogendoerfer 2 participants 2 messages Jun 26, 2007

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

PATCH 1/1 Ethernet driver for EISA only SNI RM200/RM400 machines

Below is an updated patch with changes recommended/requested by Andrew

Thomas.

Ethernet driver for EISA only SNI RM200/RM400 machines

---

drivers/net/Kconfig +7 -0
index b0d0d73..af5c90f 100644
@@ -435,6 +435,13 @@ config LASI_82596
 	  Say Y here to support the builtin Intel 82596 ethernet controller
 	  found in Hewlett-Packard PA-RISC machines with 10Mbit ethernet.
 
+config SNI_82596
+	tristate "SNI RM ethernet"
+	depends on NET_ETHERNET && SNI_RM
+	help
+	  Say Y here to support the on-board Intel 82596 ethernet controller
+	  built into SNI RM machines.
+
 config MIPS_JAZZ_SONIC
 	tristate "MIPS JAZZ onboard SONIC Ethernet support"
 	depends on NET_ETHERNET && MACH_JAZZ
drivers/net/Makefile +1 -0
index d268b49..b03270c 100644
@@ -161,6 +161,7 @@ obj-$(CONFIG_ELPLUS) += 3c505.o
 obj-$(CONFIG_AC3200) += ac3200.o 8390.o
 obj-$(CONFIG_APRICOT) += 82596.o
 obj-$(CONFIG_LASI_82596) += lasi_82596.o
+obj-$(CONFIG_SNI_82596) += sni_82596.o
 obj-$(CONFIG_MVME16x_NET) += 82596.o
 obj-$(CONFIG_BVME6000_NET) += 82596.o
 obj-$(CONFIG_SC92031) += sc92031.o
drivers/net/sni_82596.c new file +198 -0

198 lines not on this page · raw message

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                                [ RFC1925, 2.3 ]
#1 lore raw

Thomas Bogendoerfer <[email protected]> :
[...]

Quoted 5 lines
drivers/net/sni_82596.c new file +0 -0
new file mode 100644
index 0000000..80e32ad

[...]

Quoted 2 lines
drivers/net/sni_82596.c new file +2 -0
+static int __devinit sni_82596_probe(struct platform_device *dev)
+{

[...]

drivers/net/sni_82596.c line 157

Quoted 8 lines
drivers/net/sni_82596.c new file +8 -0
+	if (retval) {
+		free_netdev(netdevice);
+probe_failed:
+		if (mpu_addr)
+			iounmap(mpu_addr);
+		if (ca_addr)
+			iounmap(ca_addr);
+		if (eth_addr)
                    ^^^

drivers/net/sni_82596.c

Quoted 1 line
drivers/net/sni_82596.c new file +1 -0
+			iounmap(ca_addr);
                                ^^

-> typo

Please use plain goto with proper labels and remove the tests.

Signature · 1 line
Ueimor