Commit 8b2e10d7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove kernel 2.2 code from drivers/net/hamradio/dmascc.c

From: Adrian Bunk <bunk@fs.tum.de>

The patch below removes some #ifdef'd kernel 2.2 code from
drivers/net/hamradio/dmascc.c.
parent 2e16180e
...@@ -48,21 +48,6 @@ ...@@ -48,21 +48,6 @@
#include "z8530.h" #include "z8530.h"
/* Linux 2.2 and 2.3 compatibility */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,14)
#define net_device device
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,43)
#define netif_start_queue(dev) { dev->tbusy = 0; }
#define netif_stop_queue(dev) { dev->tbusy = 1; }
#define netif_wake_queue(dev) { dev->tbusy = 0; mark_bh(NET_BH); }
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,47)
#define netif_running(dev) (dev->flags & IFF_UP)
#endif
/* Number of buffers per channel */ /* Number of buffers per channel */
#define NUM_TX_BUF 2 /* NUM_TX_BUF >= 1 (min. 2 recommended) */ #define NUM_TX_BUF 2 /* NUM_TX_BUF >= 1 (min. 2 recommended) */
...@@ -210,9 +195,6 @@ struct scc_hardware { ...@@ -210,9 +195,6 @@ struct scc_hardware {
}; };
struct scc_priv { struct scc_priv {
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
char name[IFNAMSIZ];
#endif
int type; int type;
int chip; int chip;
struct net_device *dev; struct net_device *dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment