aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/appletalk
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/appletalk')
-rw-r--r--drivers/net/appletalk/cops.c5
-rw-r--r--drivers/net/appletalk/ipddp.c13
-rw-r--r--drivers/net/appletalk/ltpc.c5
3 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c
index b5dc7f550725..6f8d6206b5c4 100644
--- a/drivers/net/appletalk/cops.c
+++ b/drivers/net/appletalk/cops.c
@@ -56,7 +56,6 @@ static const char *version =
56#include <linux/ptrace.h> 56#include <linux/ptrace.h>
57#include <linux/ioport.h> 57#include <linux/ioport.h>
58#include <linux/in.h> 58#include <linux/in.h>
59#include <linux/slab.h>
60#include <linux/string.h> 59#include <linux/string.h>
61#include <linux/errno.h> 60#include <linux/errno.h>
62#include <linux/init.h> 61#include <linux/init.h>
@@ -120,7 +119,7 @@ static int irq = 5; /* Default IRQ */
120 * DAYNA driver mode: 119 * DAYNA driver mode:
121 * Dayna DL2000/DaynaTalk PC (Half Length), COPS LT-95, 120 * Dayna DL2000/DaynaTalk PC (Half Length), COPS LT-95,
122 * Farallon PhoneNET PC III, Farallon PhoneNET PC II 121 * Farallon PhoneNET PC III, Farallon PhoneNET PC II
123 * Other cards possibly supported mode unkown though: 122 * Other cards possibly supported mode unknown though:
124 * Dayna DL2000 (Full length), COPS LT/M (Micro-Channel) 123 * Dayna DL2000 (Full length), COPS LT/M (Micro-Channel)
125 * 124 *
126 * Cards NOT supported by this driver but supported by the ltpc.c 125 * Cards NOT supported by this driver but supported by the ltpc.c
@@ -328,7 +327,7 @@ static int __init cops_probe1(struct net_device *dev, int ioaddr)
328 327
329 /* Reserve any actual interrupt. */ 328 /* Reserve any actual interrupt. */
330 if (dev->irq) { 329 if (dev->irq) {
331 retval = request_irq(dev->irq, &cops_interrupt, 0, dev->name, dev); 330 retval = request_irq(dev->irq, cops_interrupt, 0, dev->name, dev);
332 if (retval) 331 if (retval)
333 goto err_out; 332 goto err_out;
334 } 333 }
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c
index aaf14d306a4a..79636ee35829 100644
--- a/drivers/net/appletalk/ipddp.c
+++ b/drivers/net/appletalk/ipddp.c
@@ -31,6 +31,7 @@
31#include <linux/ip.h> 31#include <linux/ip.h>
32#include <linux/atalk.h> 32#include <linux/atalk.h>
33#include <linux/if_arp.h> 33#include <linux/if_arp.h>
34#include <linux/slab.h>
34#include <net/route.h> 35#include <net/route.h>
35#include <asm/uaccess.h> 36#include <asm/uaccess.h>
36 37
@@ -230,9 +231,9 @@ static int ipddp_delete(struct ipddp_route *rt)
230 spin_lock_bh(&ipddp_route_lock); 231 spin_lock_bh(&ipddp_route_lock);
231 while((tmp = *r) != NULL) 232 while((tmp = *r) != NULL)
232 { 233 {
233 if(tmp->ip == rt->ip 234 if(tmp->ip == rt->ip &&
234 && tmp->at.s_net == rt->at.s_net 235 tmp->at.s_net == rt->at.s_net &&
235 && tmp->at.s_node == rt->at.s_node) 236 tmp->at.s_node == rt->at.s_node)
236 { 237 {
237 *r = tmp->next; 238 *r = tmp->next;
238 spin_unlock_bh(&ipddp_route_lock); 239 spin_unlock_bh(&ipddp_route_lock);
@@ -255,9 +256,9 @@ static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt)
255 256
256 for(f = ipddp_route_list; f != NULL; f = f->next) 257 for(f = ipddp_route_list; f != NULL; f = f->next)
257 { 258 {
258 if(f->ip == rt->ip 259 if(f->ip == rt->ip &&
259 && f->at.s_net == rt->at.s_net 260 f->at.s_net == rt->at.s_net &&
260 && f->at.s_node == rt->at.s_node) 261 f->at.s_node == rt->at.s_node)
261 return (f); 262 return (f);
262 } 263 }
263 264
diff --git a/drivers/net/appletalk/ltpc.c b/drivers/net/appletalk/ltpc.c
index 08760baece7a..6af65b656f31 100644
--- a/drivers/net/appletalk/ltpc.c
+++ b/drivers/net/appletalk/ltpc.c
@@ -215,7 +215,6 @@ static int dma;
215#include <linux/ioport.h> 215#include <linux/ioport.h>
216#include <linux/spinlock.h> 216#include <linux/spinlock.h>
217#include <linux/in.h> 217#include <linux/in.h>
218#include <linux/slab.h>
219#include <linux/string.h> 218#include <linux/string.h>
220#include <linux/errno.h> 219#include <linux/errno.h>
221#include <linux/init.h> 220#include <linux/init.h>
@@ -228,6 +227,7 @@ static int dma;
228#include <linux/timer.h> 227#include <linux/timer.h>
229#include <linux/atalk.h> 228#include <linux/atalk.h>
230#include <linux/bitops.h> 229#include <linux/bitops.h>
230#include <linux/gfp.h>
231 231
232#include <asm/system.h> 232#include <asm/system.h>
233#include <asm/dma.h> 233#include <asm/dma.h>
@@ -1125,7 +1125,6 @@ struct net_device * __init ltpc_probe(void)
1125 printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma); 1125 printk(KERN_INFO "Apple/Farallon LocalTalk-PC card at %03x, DMA%d. Using polled mode.\n",io,dma);
1126 1126
1127 dev->netdev_ops = &ltpc_netdev; 1127 dev->netdev_ops = &ltpc_netdev;
1128 dev->mc_list = NULL;
1129 dev->base_addr = io; 1128 dev->base_addr = io;
1130 dev->irq = irq; 1129 dev->irq = irq;
1131 dev->dma = dma; 1130 dev->dma = dma;
@@ -1158,7 +1157,7 @@ struct net_device * __init ltpc_probe(void)
1158 } 1157 }
1159 1158
1160 /* grab it and don't let go :-) */ 1159 /* grab it and don't let go :-) */
1161 if (irq && request_irq( irq, &ltpc_interrupt, 0, "ltpc", dev) >= 0) 1160 if (irq && request_irq( irq, ltpc_interrupt, 0, "ltpc", dev) >= 0)
1162 { 1161 {
1163 (void) inb_p(io+7); /* enable interrupts from board */ 1162 (void) inb_p(io+7); /* enable interrupts from board */
1164 (void) inb_p(io+7); /* and reset irq line */ 1163 (void) inb_p(io+7); /* and reset irq line */