[PATCH 18/26] mvme147: convert to net_device_ops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander Beregalov
Date: Wednesday, April 15, 2009 - 3:52 pm

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
 drivers/net/mvme147.c |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/drivers/net/mvme147.c b/drivers/net/mvme147.c
index 435e5a8..93c709d 100644
--- a/drivers/net/mvme147.c
+++ b/drivers/net/mvme147.c
@@ -57,6 +57,17 @@ typedef void (*writerap_t)(void *, unsigned short);
 typedef void (*writerdp_t)(void *, unsigned short);
 typedef unsigned short (*readrdp_t)(void *);
 
+static const struct net_device_ops lance_netdev_ops = {
+	.ndo_open		= m147lance_open,
+	.ndo_stop		= m147lance_close,
+	.ndo_start_xmit		= lance_start_xmit,
+	.ndo_set_multicast_list	= lance_set_multicast,
+	.ndo_tx_timeout		= lance_tx_timeout,
+	.ndo_change_mtu		= eth_change_mtu,
+	.ndo_validate_addr	= eth_validate_addr,
+	.ndo_set_mac_address	= eth_mac_addr,
+};
+
 /* Initialise the one and only on-board 7990 */
 struct net_device * __init mvme147lance_probe(int unit)
 {
@@ -81,11 +92,7 @@ struct net_device * __init mvme147lance_probe(int unit)
 
 	/* Fill the dev fields */
 	dev->base_addr = (unsigned long)MVME147_LANCE_BASE;
-	dev->open = &m147lance_open;
-	dev->stop = &m147lance_close;
-	dev->hard_start_xmit = &lance_start_xmit;
-	dev->set_multicast_list = &lance_set_multicast;
-	dev->tx_timeout = &lance_tx_timeout;
+	dev->netdev_ops = &lance_netdev_ops;
 	dev->dma = 0;
 
 	addr=(u_long *)ETHERNET_ADDRESS;
-- 
1.6.2.3

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/26] bmac: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 02/26] cpmac: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 03/26] dm9000: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 04/26] hplance: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 05/26] ibmveth: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 06/26] irda/au1k_ir: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 07/26] irda/pxaficp_ir: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 08/26] irda/sa1100_ir: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 09/26] iseries_veth: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 10/26] ixp2000/ixpdev: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 11/26] jazzsonic: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 12/26] korina: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 13/26] lib82596: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 14/26] mace: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 15/26] macmace: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 16/26] meth: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 17/26] mipsnet: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 18/26] mvme147: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 19/26] netx-eth: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 20/26] pasemi_mac: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 21/26] pci-skeleton: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 22/26] rionet: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 23/26] sb1250-mac: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 24/26] sgiseeq: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 25/26] smc911x: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:52 pm)
[PATCH 26/26] sun3lance: convert to net_device_ops, Alexander Beregalov, (Wed Apr 15, 3:53 pm)
Re: [PATCH 01/26] bmac: convert to net_device_ops, David Miller, (Thu Apr 16, 2:24 am)