Skip to content

Commit

Permalink
sgi-xp: link XPNET's net_device_ops to its net_device structure
Browse files Browse the repository at this point in the history
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 e8ac9c5
("xpnet: convert devices to new API").

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dean Nelson authored and David S. Miller committed Feb 3, 2009
1 parent a9d3a14 commit 714c48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/misc/sgi-xp/xpnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

/*
Expand Down Expand Up @@ -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;

/*
Expand Down

0 comments on commit 714c48f

Please sign in to comment.