aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ps3_gelic_wireless.c
diff options
context:
space:
mode:
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>2009-01-15 17:52:55 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:34:52 -0500
commit31e2b7bd21035cb3d7cd567dfdf4f82817c4f6fb (patch)
tree166106833da8ae729eeaf44fe93bee50cf2d3616 /drivers/net/ps3_gelic_wireless.c
parent5384e8361a9bb7fca054b47c1dde7ac0e929407f (diff)
PS3: gelic: wireless: convert the wireless part to net_device_ops
Convert the gelic wireless driver to net_device_ops Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ps3_gelic_wireless.c')
-rw-r--r--drivers/net/ps3_gelic_wireless.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c
index ec2314246682..708ae067c331 100644
--- a/drivers/net/ps3_gelic_wireless.c
+++ b/drivers/net/ps3_gelic_wireless.c
@@ -2697,6 +2697,19 @@ static int gelic_wl_stop(struct net_device *netdev)
2697 2697
2698/* -- */ 2698/* -- */
2699 2699
2700static const struct net_device_ops gelic_wl_netdevice_ops = {
2701 .ndo_open = gelic_wl_open,
2702 .ndo_stop = gelic_wl_stop,
2703 .ndo_start_xmit = gelic_net_xmit,
2704 .ndo_set_multicast_list = gelic_net_set_multi,
2705 .ndo_change_mtu = gelic_net_change_mtu,
2706 .ndo_tx_timeout = gelic_net_tx_timeout,
2707 .ndo_validate_addr = eth_validate_addr,
2708#ifdef CONFIG_NET_POLL_CONTROLLER
2709 .ndo_poll_controller = gelic_net_poll_controller,
2710#endif
2711};
2712
2700static struct ethtool_ops gelic_wl_ethtool_ops = { 2713static struct ethtool_ops gelic_wl_ethtool_ops = {
2701 .get_drvinfo = gelic_net_get_drvinfo, 2714 .get_drvinfo = gelic_net_get_drvinfo,
2702 .get_link = gelic_wl_get_link, 2715 .get_link = gelic_wl_get_link,
@@ -2711,21 +2724,12 @@ static void gelic_wl_setup_netdev_ops(struct net_device *netdev)
2711 struct gelic_wl_info *wl; 2724 struct gelic_wl_info *wl;
2712 wl = port_wl(netdev_priv(netdev)); 2725 wl = port_wl(netdev_priv(netdev));
2713 BUG_ON(!wl); 2726 BUG_ON(!wl);
2714 netdev->open = &gelic_wl_open;
2715 netdev->stop = &gelic_wl_stop;
2716 netdev->hard_start_xmit = &gelic_net_xmit;
2717 netdev->set_multicast_list = &gelic_net_set_multi;
2718 netdev->change_mtu = &gelic_net_change_mtu;
2719 netdev->wireless_data = &wl->wireless_data;
2720 netdev->wireless_handlers = &gelic_wl_wext_handler_def;
2721 /* tx watchdog */
2722 netdev->tx_timeout = &gelic_net_tx_timeout;
2723 netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT; 2727 netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT;
2724 2728
2725 netdev->ethtool_ops = &gelic_wl_ethtool_ops; 2729 netdev->ethtool_ops = &gelic_wl_ethtool_ops;
2726#ifdef CONFIG_NET_POLL_CONTROLLER 2730 netdev->netdev_ops = &gelic_wl_netdevice_ops;
2727 netdev->poll_controller = gelic_net_poll_controller; 2731 netdev->wireless_data = &wl->wireless_data;
2728#endif 2732 netdev->wireless_handlers = &gelic_wl_wext_handler_def;
2729} 2733}
2730 2734
2731/* 2735/*