public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sgi-xp: link XPNET's net_device_ops to its net_device structure
@ 2009-02-03 16:24 Dean Nelson
  2009-02-03 23:17 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Dean Nelson @ 2009-02-03 16:24 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

A recent patch by Stephen Hemminger to convert XPNET to use net_device_ops and
internal net_device_stats failed to link the net_device_ops structure to the
net_device structure. See commit e8ac9c55f28482f5b2f497a8e7eb90985db237c2.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>

---

 drivers/misc/sgi-xp/xpnet.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux/drivers/misc/sgi-xp/xpnet.c
===================================================================
--- linux.orig/drivers/misc/sgi-xp/xpnet.c	2009-02-03 06:52:18.000000000 -0600
+++ linux/drivers/misc/sgi-xp/xpnet.c	2009-02-03 09:45:12.021089437 -0600
@@ -3,7 +3,7 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
- * Copyright (C) 1999-2008 Silicon Graphics, Inc. All rights reserved.
+ * Copyright (C) 1999-2009 Silicon Graphics, Inc. All rights reserved.
  */
 
 /*
@@ -551,6 +551,7 @@ xpnet_init(void)
 
 	netif_carrier_off(xpnet_device);
 
+	xpnet_device->netdev_ops = &xpnet_netdev_ops;
 	xpnet_device->mtu = XPNET_DEF_MTU;
 
 	/*

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-03 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 16:24 [PATCH] sgi-xp: link XPNET's net_device_ops to its net_device structure Dean Nelson
2009-02-03 23:17 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox