diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-03-26 11:11:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-27 03:46:49 -0400 |
commit | d9c6d50d8dae755fe136e9cfdd137f856f60af4b (patch) | |
tree | 085e942cb5ef94fb0bc4b435151e5e8a6b04d0d4 /drivers/net/ibmlana.c | |
parent | 462540bdb2f08d465a2416764fc628520f82939f (diff) |
netdev: ibmlana convert to 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/ibmlana.c')
-rw-r--r-- | drivers/net/ibmlana.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/ibmlana.c b/drivers/net/ibmlana.c index 5b5bf9f9861a..c25bc0bc0b25 100644 --- a/drivers/net/ibmlana.c +++ b/drivers/net/ibmlana.c | |||
@@ -905,6 +905,17 @@ static char *ibmlana_adapter_names[] __devinitdata = { | |||
905 | NULL | 905 | NULL |
906 | }; | 906 | }; |
907 | 907 | ||
908 | |||
909 | static const struct net_device_ops ibmlana_netdev_ops = { | ||
910 | .ndo_open = ibmlana_open, | ||
911 | .ndo_stop = ibmlana_close, | ||
912 | .ndo_start_xmit = ibmlana_tx, | ||
913 | .ndo_set_multicast_list = ibmlana_set_multicast_list, | ||
914 | .ndo_change_mtu = eth_change_mtu, | ||
915 | .ndo_set_mac_address = eth_mac_addr, | ||
916 | .ndo_validate_addr = eth_validate_addr, | ||
917 | }; | ||
918 | |||
908 | static int __devinit ibmlana_init_one(struct device *kdev) | 919 | static int __devinit ibmlana_init_one(struct device *kdev) |
909 | { | 920 | { |
910 | struct mca_device *mdev = to_mca_device(kdev); | 921 | struct mca_device *mdev = to_mca_device(kdev); |
@@ -973,11 +984,7 @@ static int __devinit ibmlana_init_one(struct device *kdev) | |||
973 | mca_device_set_claim(mdev, 1); | 984 | mca_device_set_claim(mdev, 1); |
974 | 985 | ||
975 | /* set methods */ | 986 | /* set methods */ |
976 | 987 | dev->netdev_ops = &ibmlana_netdev_ops; | |
977 | dev->open = ibmlana_open; | ||
978 | dev->stop = ibmlana_close; | ||
979 | dev->hard_start_xmit = ibmlana_tx; | ||
980 | dev->set_multicast_list = ibmlana_set_multicast_list; | ||
981 | dev->flags |= IFF_MULTICAST; | 988 | dev->flags |= IFF_MULTICAST; |
982 | 989 | ||
983 | /* copy out MAC address */ | 990 | /* copy out MAC address */ |