From: Adrian Bunk <bunk@fs.tum.de>
To: klaus.kudielka@ieee.org
Cc: linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] remove kernel 2.2 code from drivers/net/hamradio/dmascc.c
Date: Sat, 7 Feb 2004 21:45:38 +0100 [thread overview]
Message-ID: <20040207204538.GD7388@fs.tum.de> (raw)
The patch below removes some #ifdef'd kernel 2.2 code from
drivers/net/hamradio/dmascc.c .
cu
Adrian
--- linux-2.6.2-mm1/drivers/net/hamradio/dmascc.c.old 2004-02-07 21:39:39.000000000 +0100
+++ linux-2.6.2-mm1/drivers/net/hamradio/dmascc.c 2004-02-07 21:39:58.000000000 +0100
@@ -48,21 +48,6 @@
#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 */
#define NUM_TX_BUF 2 /* NUM_TX_BUF >= 1 (min. 2 recommended) */
@@ -210,9 +195,6 @@
};
struct scc_priv {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
- char name[IFNAMSIZ];
-#endif
int type;
int chip;
struct net_device *dev;
reply other threads:[~2004-02-07 20:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040207204538.GD7388@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=klaus.kudielka@ieee.org \
--cc=linux-hams@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox