summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/baycom_epp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamradio/baycom_epp.c')
-rw-r--r--drivers/net/hamradio/baycom_epp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index 0e41265fe..cd6815df7 100644
--- a/drivers/net/hamradio/baycom_epp.c
+++ b/drivers/net/hamradio/baycom_epp.c
@@ -814,7 +814,7 @@ static int receive(struct net_device *dev, int cnt)
#ifdef __i386__
#define GETTICK(x) \
({ \
- if (cpu_has_tsc) \
+ if (current_cpu_data.x86_capability & X86_FEATURE_TSC) \
__asm__ __volatile__("rdtsc" : "=a" (x) : : "dx");\
})
#else /* __i386__ */
@@ -1023,8 +1023,7 @@ static int epp_open(struct net_device *dev)
struct baycom_state *bc;
struct parport *pp;
const struct tq_struct run_bh = {
- routine: (void *)(void *)epp_bh,
- data: dev
+ 0, 0, (void *)(void *)epp_bh, dev
};
unsigned int i, j;
unsigned char tmp[128];
@@ -1507,7 +1506,7 @@ module_exit(cleanup_baycomepp);
static int __init baycom_epp_setup(char *str)
{
- static unsigned __initdata nr_dev = 0;
+ static unsigned __initlocaldata nr_dev = 0;
int ints[2];
if (nr_dev >= NR_PORTS)