Alexander Beregalov
d32da050a3
wan/pc300_drv: convert to net_device_ops
On Fri, Apr 17, 2009 at 05:23:02AM +0400, Alexander Beregalov wrote:
>
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> ---
> drivers/net/wan/pc300_drv.c | 22 ++++++++++++++--------
> 1 files changed, 14 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c
> index c23fde0..df10a4c 100644
> --- a/drivers/net/wan/pc300_drv.c
> +++ b/drivers/net/wan/pc300_drv.c
> @@ -225,6 +225,7 @@ static char rcsid[] =
> #include <linux/skbuff.h>
> #include <linux/if_arp.h>
> #include <linux/netdevice.h>
> +#include <linux/etherdevice.h>
> #include <linux/spinlock.h>
> #include <linux/if.h>
> #include <net/arp.h>
> @@ -3246,6 +3247,18 @@ static inline void show_version(void)
> rcsvers, rcsdate, __DATE__, __TIME__);
> } /* show_version */
>
> +static const struct net_device_ops cpc_netdev_ops = {
> + .ndo_init = NULL,
> + .ndo_open = cpc_open,
> + .ndo_stop = cpc_close,
> + .ndo_tx_timeout = cpc_tx_timeout,
> + .ndo_set_multicast_list = NULL,
In this case ndo_init and ndo_set_multicast_list
are not needed.
>From 1507a5a797a5f0005696a9bf10e390caca9c3800 Mon Sep 17 00:00:00 2001
From: Alexander Beregalov <a.beregalov@gmail.com>
Date: Fri, 17 Apr 2009 05:45:48 +0400
Subject: [PATCH] wan/pc300_drv: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-04-17 01:14:53 -07:00
..
2009-04-11 12:45:20 -07:00
2009-04-13 04:22:04 -04:00
2009-04-07 08:31:11 -07:00
2009-04-01 08:59:17 -07:00
2009-04-07 08:31:12 -07:00
2009-04-08 14:13:04 +02:00
2009-04-07 08:31:03 -07:00
2009-04-02 11:18:48 +09:00
2009-04-07 08:31:11 -07:00
2009-04-07 08:31:11 -07:00
2009-04-02 19:05:04 -07:00
2009-04-07 08:31:11 -07:00
2009-04-03 15:24:35 -07:00
2009-04-05 02:14:15 -04:00
2009-04-03 15:25:44 -07:00
2009-04-07 08:44:43 -07:00
2009-04-13 17:02:14 +02:00
2009-04-08 14:13:04 +02:00
2009-04-07 08:31:10 -07:00
2009-04-07 08:31:11 -07:00
2009-04-09 16:42:26 -07:00
2009-04-08 00:00:33 -07:00
2009-04-06 18:05:43 -07:00
2009-04-08 14:13:48 +01:00
2009-04-09 00:27:17 +01:00
2009-04-10 12:01:22 -07:00
2009-04-07 08:31:11 -07:00
2009-04-07 08:31:11 -07:00
2009-04-05 00:32:25 +02:00
2009-04-07 08:31:11 -07:00
2009-04-08 20:45:51 +02:00
2009-04-06 15:00:00 -07:00
2009-04-17 01:14:53 -07:00
2009-04-01 08:59:23 -07:00
2009-04-05 11:04:19 -07:00
2009-04-02 00:40:41 +00:00
2009-04-07 08:44:06 -07:00
2009-04-13 11:35:50 -07:00
2009-04-02 11:02:32 +01:00
2009-04-07 18:18:42 -04:00
2009-04-07 08:31:12 -07:00
2009-04-08 17:45:02 -07:00
2009-04-07 08:31:11 -07:00
2009-03-31 11:29:54 +01:00
2009-04-05 11:15:54 -07:00
2009-04-02 19:04:50 -07:00
2009-04-13 11:37:07 -07:00
2009-04-13 08:17:52 -07:00
2009-04-02 11:19:57 +09:00
2009-04-07 08:31:10 -07:00
2009-04-07 08:31:07 -07:00
2009-04-07 08:44:05 -07:00
2009-04-08 15:24:09 -07:00
2009-04-07 08:31:11 -07:00
2009-04-07 08:31:09 -07:00
2009-04-05 00:32:22 +02:00
2009-04-08 06:21:57 +00:00
2009-04-05 10:33:07 -07:00