aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2008-12-21 20:00:17 -0500
committerKrzysztof Hałasa <khc@pm.waw.pl>2008-12-21 20:04:52 -0500
commit59f8500efb05096484a55263109acab6a6df89d5 (patch)
tree93d39bc96a2ad7ff173e5f9d836da75279482585 /drivers/net
parent4cb56b685617732733d4d9dffbf8c5a81d4a0c71 (diff)
Convert ixp4xx_eth driver to use net_device_ops.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/arm/ixp4xx_eth.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c
index 64adf6cc1221..1c757b6781bb 100644
--- a/drivers/net/arm/ixp4xx_eth.c
+++ b/drivers/net/arm/ixp4xx_eth.c
@@ -1125,6 +1125,15 @@ static int eth_close(struct net_device *dev)
1125 return 0; 1125 return 0;
1126} 1126}
1127 1127
1128static const struct net_device_ops ixp4xx_netdev_ops = {
1129 .ndo_open = eth_open,
1130 .ndo_stop = eth_close,
1131 .ndo_start_xmit = eth_xmit,
1132 .ndo_set_multicast_list = eth_set_mcast_list,
1133 .ndo_do_ioctl = eth_ioctl,
1134
1135};
1136
1128static int __devinit eth_init_one(struct platform_device *pdev) 1137static int __devinit eth_init_one(struct platform_device *pdev)
1129{ 1138{
1130 struct port *port; 1139 struct port *port;
@@ -1160,12 +1169,8 @@ static int __devinit eth_init_one(struct platform_device *pdev)
1160 goto err_free; 1169 goto err_free;
1161 } 1170 }
1162 1171
1163 dev->open = eth_open; 1172 dev->netdev_ops = &ixp4xx_netdev_ops;
1164 dev->hard_start_xmit = eth_xmit;
1165 dev->stop = eth_close;
1166 dev->do_ioctl = eth_ioctl;
1167 dev->ethtool_ops = &ixp4xx_ethtool_ops; 1173 dev->ethtool_ops = &ixp4xx_ethtool_ops;
1168 dev->set_multicast_list = eth_set_mcast_list;
1169 dev->tx_queue_len = 100; 1174 dev->tx_queue_len = 100;
1170 1175
1171 netif_napi_add(dev, &port->napi, eth_poll, NAPI_WEIGHT); 1176 netif_napi_add(dev, &port->napi, eth_poll, NAPI_WEIGHT);