diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 15 |
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 | ||
1128 | static 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 | |||
1128 | static int __devinit eth_init_one(struct platform_device *pdev) | 1137 | static 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); |