Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149757
b: refs/heads/master
c: d6771e0
h: refs/heads/master
i:
  149755: 1326ea0
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent ccd1747 commit 82d4198
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d53bc2df189f1e11a947eed077f0360bfadf9986
refs/heads/master: d6771e0b895f04e8bbd12f12fb3a97e130a4a5f4
15 changes: 11 additions & 4 deletions trunk/drivers/net/mipsnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ static void mipsnet_set_mclist(struct net_device *dev)
{
}

static const struct net_device_ops mipsnet_netdev_ops = {
.ndo_open = mipsnet_open,
.ndo_stop = mipsnet_close,
.ndo_start_xmit = mipsnet_xmit,
.ndo_set_multicast_list = mipsnet_set_mclist,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
};

static int __init mipsnet_probe(struct platform_device *dev)
{
struct net_device *netdev;
Expand All @@ -250,10 +260,7 @@ static int __init mipsnet_probe(struct platform_device *dev)

platform_set_drvdata(dev, netdev);

netdev->open = mipsnet_open;
netdev->stop = mipsnet_close;
netdev->hard_start_xmit = mipsnet_xmit;
netdev->set_multicast_list = mipsnet_set_mclist;
netdev->netdev_ops = &mipsnet_netdev_ops;

/*
* TODO: probe for these or load them from PARAM
Expand Down

0 comments on commit 82d4198

Please sign in to comment.