dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/net/wan
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
..
lmc WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
.gitignore
Kconfig WAN: Add IXP4xx HSS HDLC driver. 2008-12-22 00:47:31 +01:00
Makefile WAN: Add IXP4xx HSS HDLC driver. 2008-12-22 00:47:31 +01:00
c101.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
cosa.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2009-03-26 16:14:02 -07:00
cosa.h
cycx_drv.c
cycx_main.c
cycx_x25.c cycx: convert to net_device_ops 2009-03-21 22:38:00 -07:00
dlci.c dlci: convert to net_device_ops 2009-03-21 22:37:59 -07:00
dscc4.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
farsync.c trivial: fix typo "varaible" -> "variable" 2009-03-30 15:21:57 +02:00
farsync.h
hd64570.c WAN: Correct comments in hd6457[02].c 2008-11-22 02:49:48 +01:00
hd64570.h
hd64572.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
hd64572.h
hdlc.c net: convert usage of packet_type to read_mostly 2009-03-10 05:22:43 -07:00
hdlc_cisco.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
hdlc_fr.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
hdlc_ppp.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
hdlc_raw.c net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
hdlc_raw_eth.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
hdlc_x25.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
hostess_sv11.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
ixp4xx_hss.c net: Remove redundant NAPI functions 2009-01-21 14:33:50 -08:00
lapbether.c labether: convert to net_device_ops 2009-03-21 22:43:55 -07:00
n2.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
pc300-falc-lh.h
pc300.h
pc300_drv.c wan/pc300_drv: convert to net_device_ops 2009-04-17 01:14:53 -07:00
pc300_tty.c
pc300too.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
pci200syn.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
sbni.c sbni: convert to net_device_ops 2009-03-21 22:43:56 -07:00
sbni.h
sdla.c wan: convert sdla driver to net_device_ops 2009-03-27 00:46:44 -07:00
sealevel.c WAN: Convert generic HDLC drivers to netdev_ops. 2009-01-21 14:03:37 -08:00
wanxl.c dma-mapping: replace all DMA_28BIT_MASK macro with DMA_BIT_MASK(28) 2009-04-07 08:31:12 -07:00
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped
x25_asy.c x25_asy: convert to net_device_ops 2009-03-21 22:37:57 -07:00
x25_asy.h x25_asy: convert to internal net_device_stats 2009-03-21 22:37:57 -07:00
z85230.c drivers/net/wan: fix warning: format not a string literal and no ... 2009-02-17 19:34:48 -08:00
z85230.h