aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/etherh.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-12-02 17:52:25 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-02 17:52:25 -0500
commitb9a9b4b0429d0c0e4655d531a57a6424d972433c (patch)
treed603daf1522a1a442648acf92a7407464d920d2a /drivers/net/arm/etherh.c
parent6976a1d6c222c50ac93d2273b9cf57e6fd047e59 (diff)
etherh: build fix for net-next
Fix build of ARM etherh driver with new net_device_ops. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm/etherh.c')
-rw-r--r--drivers/net/arm/etherh.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c
index 9eb9d1bedc85..6278606d1049 100644
--- a/drivers/net/arm/etherh.c
+++ b/drivers/net/arm/etherh.c
@@ -637,6 +637,21 @@ static const struct ethtool_ops etherh_ethtool_ops = {
637 .get_drvinfo = etherh_get_drvinfo, 637 .get_drvinfo = etherh_get_drvinfo,
638}; 638};
639 639
640static const struct net_device_ops etherh_netdev_ops = {
641 .ndo_open = etherh_open,
642 .ndo_stop = etherh_close,
643 .ndo_set_config = etherh_set_config,
644 .ndo_start_xmit = ei_start_xmit,
645 .ndo_tx_timeout = ei_tx_timeout,
646 .ndo_get_stats = ei_get_stats,
647 .ndo_set_multicast_list = ei_set_multicast_list,
648 .ndo_validate_addr = eth_validate_addr,
649 .ndo_change_mtu = eth_change_mtu,
650#ifdef CONFIG_NET_POLL_CONTROLLER
651 .ndo_poll_controller = ei_poll,
652#endif
653};
654
640static u32 etherh_regoffsets[16]; 655static u32 etherh_regoffsets[16];
641static u32 etherm_regoffsets[16]; 656static u32 etherm_regoffsets[16];
642 657
@@ -663,9 +678,7 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
663 678
664 SET_NETDEV_DEV(dev, &ec->dev); 679 SET_NETDEV_DEV(dev, &ec->dev);
665 680
666 dev->open = etherh_open; 681 dev->netdev_ops = &etherh_netdev_ops;
667 dev->stop = etherh_close;
668 dev->set_config = etherh_set_config;
669 dev->irq = ec->irq; 682 dev->irq = ec->irq;
670 dev->ethtool_ops = &etherh_ethtool_ops; 683 dev->ethtool_ops = &etherh_ethtool_ops;
671 684