aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 15:36:27 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-22 01:44:01 -0400
commit824f1dfdbef72578272e9303dd9515399da57f28 (patch)
tree84250aa5042656829a6c8d80a328a2e57109826a /drivers
parent7ae41cc3c04b0e79b7c9c3e5cbb5222f181e3ca1 (diff)
atmel: 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')
-rw-r--r--drivers/net/wireless/atmel.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c
index b06835a621a3..857d84148b1d 100644
--- a/drivers/net/wireless/atmel.c
+++ b/drivers/net/wireless/atmel.c
@@ -1495,6 +1495,17 @@ static int atmel_read_proc(char *page, char **start, off_t off,
1495 return len; 1495 return len;
1496} 1496}
1497 1497
1498static const struct net_device_ops atmel_netdev_ops = {
1499 .ndo_open = atmel_open,
1500 .ndo_stop = atmel_close,
1501 .ndo_change_mtu = atmel_change_mtu,
1502 .ndo_set_mac_address = atmel_set_mac_address,
1503 .ndo_start_xmit = start_tx,
1504 .ndo_do_ioctl = atmel_ioctl,
1505 .ndo_change_mtu = eth_change_mtu,
1506 .ndo_validate_addr = eth_validate_addr,
1507};
1508
1498struct net_device *init_atmel_card(unsigned short irq, unsigned long port, 1509struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
1499 const AtmelFWType fw_type, 1510 const AtmelFWType fw_type,
1500 struct device *sys_dev, 1511 struct device *sys_dev,
@@ -1579,13 +1590,8 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
1579 priv->management_timer.function = atmel_management_timer; 1590 priv->management_timer.function = atmel_management_timer;
1580 priv->management_timer.data = (unsigned long) dev; 1591 priv->management_timer.data = (unsigned long) dev;
1581 1592
1582 dev->open = atmel_open; 1593 dev->netdev_ops = &atmel_netdev_ops;
1583 dev->stop = atmel_close; 1594 dev->wireless_handlers = &atmel_handler_def;
1584 dev->change_mtu = atmel_change_mtu;
1585 dev->set_mac_address = atmel_set_mac_address;
1586 dev->hard_start_xmit = start_tx;
1587 dev->wireless_handlers = (struct iw_handler_def *)&atmel_handler_def;
1588 dev->do_ioctl = atmel_ioctl;
1589 dev->irq = irq; 1595 dev->irq = irq;
1590 dev->base_addr = port; 1596 dev->base_addr = port;
1591 1597