linux-mips
[Top] [All Lists]

[PATCH] Small fix for the Sibyte Mac driver

To: linux-mips@linux-mips.org
Subject: [PATCH] Small fix for the Sibyte Mac driver
From: Manish Lachwani <mlachwani@prometheus.mvista.com>
Date: Mon, 8 Nov 2004 15:51:48 -0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
Hello !

Attached is a small patch for the Sibyte MAC Driver. This helps
print the device name correctly

Thanks
Manish Lachwani
--- drivers/net/sb1250-mac.c.orig       2004-11-08 15:36:45.000000000 -0800
+++ drivers/net/sb1250-mac.c    2004-11-08 15:44:33.000000000 -0800
@@ -2410,13 +2410,13 @@
 
        dev->change_mtu         = sb1250_change_mtu;
 
-       /* This is needed for PASS2 for Rx H/W checksum feature */
-       sbmac_set_iphdr_offset(sc);
-
        err = register_netdev(dev);
        if (err)
                goto out_uninit;
 
+       /* This is needed for PASS2 for Rx H/W checksum feature */
+       sbmac_set_iphdr_offset(sc);
+
        /*
         * Display Ethernet address (this is called during the config
         * process so we need to finish off the config message that
<Prev in Thread] Current Thread [Next in Thread>