aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-06-03 05:43:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-03 05:43:41 -0400
commitb2f8f7525c8aa1fdd8ad8c72c832dfb571d5f768 (patch)
tree71ae1801d264bca62efa0d22376b49de7f206e9a /drivers/net/bfin_mac.c
parentd455e5b165a367a628110ec2d18807ea10052cd1 (diff)
parent12186be7d2e1106cede1cc728526e3d7998cbe94 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/forcedeth.c
Diffstat (limited to 'drivers/net/bfin_mac.c')
-rw-r--r--drivers/net/bfin_mac.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index 955a46958b7f..c15fc281f79f 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -927,22 +927,7 @@ static int bfin_mac_open(struct net_device *dev)
927 return 0; 927 return 0;
928} 928}
929 929
930static const struct net_device_ops bfin_mac_netdev_ops = {
931 .ndo_open = bfin_mac_open,
932 .ndo_stop = bfin_mac_close,
933 .ndo_start_xmit = bfin_mac_hard_start_xmit,
934 .ndo_set_mac_address = bfin_mac_set_mac_address,
935 .ndo_tx_timeout = bfin_mac_timeout,
936 .ndo_set_multicast_list = bfin_mac_set_multicast_list,
937 .ndo_validate_addr = eth_validate_addr,
938 .ndo_change_mtu = eth_change_mtu,
939#ifdef CONFIG_NET_POLL_CONTROLLER
940 .ndo_poll_controller = bfin_mac_poll,
941#endif
942};
943
944/* 930/*
945 *
946 * this makes the board clean up everything that it can 931 * this makes the board clean up everything that it can
947 * and not talk to the outside world. Caused by 932 * and not talk to the outside world. Caused by
948 * an 'ifconfig ethX down' 933 * an 'ifconfig ethX down'
@@ -967,6 +952,20 @@ static int bfin_mac_close(struct net_device *dev)
967 return 0; 952 return 0;
968} 953}
969 954
955static const struct net_device_ops bfin_mac_netdev_ops = {
956 .ndo_open = bfin_mac_open,
957 .ndo_stop = bfin_mac_close,
958 .ndo_start_xmit = bfin_mac_hard_start_xmit,
959 .ndo_set_mac_address = bfin_mac_set_mac_address,
960 .ndo_tx_timeout = bfin_mac_timeout,
961 .ndo_set_multicast_list = bfin_mac_set_multicast_list,
962 .ndo_validate_addr = eth_validate_addr,
963 .ndo_change_mtu = eth_change_mtu,
964#ifdef CONFIG_NET_POLL_CONTROLLER
965 .ndo_poll_controller = bfin_mac_poll,
966#endif
967};
968
970static int __devinit bfin_mac_probe(struct platform_device *pdev) 969static int __devinit bfin_mac_probe(struct platform_device *pdev)
971{ 970{
972 struct net_device *ndev; 971 struct net_device *ndev;