Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122890
b: refs/heads/master
c: 59f8500
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Hałasa committed Dec 22, 2008
1 parent 20a9aa7 commit c6ef93b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 4cb56b685617732733d4d9dffbf8c5a81d4a0c71
refs/heads/master: 59f8500efb05096484a55263109acab6a6df89d5
15 changes: 10 additions & 5 deletions trunk/drivers/net/arm/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,15 @@ static int eth_close(struct net_device *dev)
return 0;
}

static const struct net_device_ops ixp4xx_netdev_ops = {
.ndo_open = eth_open,
.ndo_stop = eth_close,
.ndo_start_xmit = eth_xmit,
.ndo_set_multicast_list = eth_set_mcast_list,
.ndo_do_ioctl = eth_ioctl,

};

static int __devinit eth_init_one(struct platform_device *pdev)
{
struct port *port;
Expand Down Expand Up @@ -1160,12 +1169,8 @@ static int __devinit eth_init_one(struct platform_device *pdev)
goto err_free;
}

dev->open = eth_open;
dev->hard_start_xmit = eth_xmit;
dev->stop = eth_close;
dev->do_ioctl = eth_ioctl;
dev->netdev_ops = &ixp4xx_netdev_ops;
dev->ethtool_ops = &ixp4xx_ethtool_ops;
dev->set_multicast_list = eth_set_mcast_list;
dev->tx_queue_len = 100;

netif_napi_add(dev, &port->napi, eth_poll, NAPI_WEIGHT);
Expand Down

0 comments on commit c6ef93b

Please sign in to comment.