netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/26] bmac: convert to net_device_ops
@ 2009-04-15 22:52 Alexander Beregalov
  2009-04-15 22:52 ` [PATCH 02/26] cpmac: " Alexander Beregalov
  2009-04-16  9:24 ` [PATCH 01/26] bmac: " David Miller
  0 siblings, 2 replies; 27+ messages in thread
From: Alexander Beregalov @ 2009-04-15 22:52 UTC (permalink / raw)
  To: netdev; +Cc: Alexander Beregalov


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

diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c
index 44d015f..9578a3d 100644
--- a/drivers/net/bmac.c
+++ b/drivers/net/bmac.c
@@ -1247,6 +1247,16 @@ static const struct ethtool_ops bmac_ethtool_ops = {
 	.get_link		= ethtool_op_get_link,
 };
 
+static const struct net_device_ops bmac_netdev_ops = {
+	.ndo_open		= bmac_open,
+	.ndo_stop		= bmac_close,
+	.ndo_start_xmit		= bmac_output,
+	.ndo_set_multicast_list	= bmac_set_multicast,
+	.ndo_set_mac_address	= bmac_set_address,
+	.ndo_change_mtu		= eth_change_mtu,
+	.ndo_validate_addr	= eth_validate_addr,
+};
+
 static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_id *match)
 {
 	int j, rev, ret;
@@ -1308,12 +1318,8 @@ static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_i
 	bmac_enable_and_reset_chip(dev);
 	bmwrite(dev, INTDISABLE, DisableAll);
 
-	dev->open = bmac_open;
-	dev->stop = bmac_close;
+	dev->netdev_ops = &bmac_netdev_ops;
 	dev->ethtool_ops = &bmac_ethtool_ops;
-	dev->hard_start_xmit = bmac_output;
-	dev->set_multicast_list = bmac_set_multicast;
-	dev->set_mac_address = bmac_set_address;
 
 	bmac_get_station_address(dev, addr);
 	if (bmac_verify_checksum(dev) != 0)
-- 
1.6.2.3


^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2009-04-16  9:25 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 22:52 [PATCH 01/26] bmac: convert to net_device_ops Alexander Beregalov
2009-04-15 22:52 ` [PATCH 02/26] cpmac: " Alexander Beregalov
2009-04-15 22:52   ` [PATCH 03/26] dm9000: " Alexander Beregalov
2009-04-15 22:52     ` [PATCH 04/26] hplance: " Alexander Beregalov
2009-04-15 22:52       ` [PATCH 05/26] ibmveth: " Alexander Beregalov
2009-04-15 22:52         ` [PATCH 06/26] irda/au1k_ir: " Alexander Beregalov
2009-04-15 22:52           ` [PATCH 07/26] irda/pxaficp_ir: " Alexander Beregalov
2009-04-15 22:52             ` [PATCH 08/26] irda/sa1100_ir: " Alexander Beregalov
2009-04-15 22:52               ` [PATCH 09/26] iseries_veth: " Alexander Beregalov
2009-04-15 22:52                 ` [PATCH 10/26] ixp2000/ixpdev: " Alexander Beregalov
2009-04-15 22:52                   ` [PATCH 11/26] jazzsonic: " Alexander Beregalov
2009-04-15 22:52                     ` [PATCH 12/26] korina: " Alexander Beregalov
2009-04-15 22:52                       ` [PATCH 13/26] lib82596: " Alexander Beregalov
2009-04-15 22:52                         ` [PATCH 14/26] mace: " Alexander Beregalov
2009-04-15 22:52                           ` [PATCH 15/26] macmace: " Alexander Beregalov
2009-04-15 22:52                             ` [PATCH 16/26] meth: " Alexander Beregalov
2009-04-15 22:52                               ` [PATCH 17/26] mipsnet: " Alexander Beregalov
2009-04-15 22:52                                 ` [PATCH 18/26] mvme147: " Alexander Beregalov
2009-04-15 22:52                                   ` [PATCH 19/26] netx-eth: " Alexander Beregalov
2009-04-15 22:52                                     ` [PATCH 20/26] pasemi_mac: " Alexander Beregalov
2009-04-15 22:52                                       ` [PATCH 21/26] pci-skeleton: " Alexander Beregalov
2009-04-15 22:52                                         ` [PATCH 22/26] rionet: " Alexander Beregalov
2009-04-15 22:52                                           ` [PATCH 23/26] sb1250-mac: " Alexander Beregalov
2009-04-15 22:52                                             ` [PATCH 24/26] sgiseeq: " Alexander Beregalov
2009-04-15 22:52                                               ` [PATCH 25/26] smc911x: " Alexander Beregalov
2009-04-15 22:53                                                 ` [PATCH 26/26] sun3lance: " Alexander Beregalov
2009-04-16  9:24 ` [PATCH 01/26] bmac: " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).