diff options
Diffstat (limited to 'drivers/net/wan/sealevel.c')
-rw-r--r-- | drivers/net/wan/sealevel.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wan/sealevel.c b/drivers/net/wan/sealevel.c index 0c525e24b247..e91457d6023e 100644 --- a/drivers/net/wan/sealevel.c +++ b/drivers/net/wan/sealevel.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/hdlc.h> | 23 | #include <linux/hdlc.h> |
24 | #include <linux/ioport.h> | 24 | #include <linux/ioport.h> |
25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
26 | #include <linux/slab.h> | ||
26 | #include <net/arp.h> | 27 | #include <net/arp.h> |
27 | 28 | ||
28 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
@@ -84,8 +85,7 @@ static int sealevel_open(struct net_device *d) | |||
84 | * Link layer up. | 85 | * Link layer up. |
85 | */ | 86 | */ |
86 | 87 | ||
87 | switch (unit) | 88 | switch (unit) { |
88 | { | ||
89 | case 0: | 89 | case 0: |
90 | err = z8530_sync_dma_open(d, slvl->chan); | 90 | err = z8530_sync_dma_open(d, slvl->chan); |
91 | break; | 91 | break; |
@@ -133,8 +133,7 @@ static int sealevel_close(struct net_device *d) | |||
133 | hdlc_close(d); | 133 | hdlc_close(d); |
134 | netif_stop_queue(d); | 134 | netif_stop_queue(d); |
135 | 135 | ||
136 | switch (unit) | 136 | switch (unit) { |
137 | { | ||
138 | case 0: | 137 | case 0: |
139 | z8530_sync_dma_close(d, slvl->chan); | 138 | z8530_sync_dma_close(d, slvl->chan); |
140 | break; | 139 | break; |
@@ -266,7 +265,7 @@ static __init struct slvl_board *slvl_init(int iobase, int irq, | |||
266 | /* We want a fast IRQ for this device. Actually we'd like an even faster | 265 | /* We want a fast IRQ for this device. Actually we'd like an even faster |
267 | IRQ ;) - This is one driver RtLinux is made for */ | 266 | IRQ ;) - This is one driver RtLinux is made for */ |
268 | 267 | ||
269 | if (request_irq(irq, &z8530_interrupt, IRQF_DISABLED, | 268 | if (request_irq(irq, z8530_interrupt, IRQF_DISABLED, |
270 | "SeaLevel", dev) < 0) { | 269 | "SeaLevel", dev) < 0) { |
271 | printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq); | 270 | printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq); |
272 | goto err_request_irq; | 271 | goto err_request_irq; |
@@ -342,8 +341,7 @@ static void __exit slvl_shutdown(struct slvl_board *b) | |||
342 | 341 | ||
343 | z8530_shutdown(&b->board); | 342 | z8530_shutdown(&b->board); |
344 | 343 | ||
345 | for (u = 0; u < 2; u++) | 344 | for (u = 0; u < 2; u++) { |
346 | { | ||
347 | struct net_device *d = b->dev[u].chan->netdevice; | 345 | struct net_device *d = b->dev[u].chan->netdevice; |
348 | unregister_hdlc_device(d); | 346 | unregister_hdlc_device(d); |
349 | free_netdev(d); | 347 | free_netdev(d); |
@@ -391,7 +389,7 @@ static int __init slvl_init_module(void) | |||
391 | 389 | ||
392 | static void __exit slvl_cleanup_module(void) | 390 | static void __exit slvl_cleanup_module(void) |
393 | { | 391 | { |
394 | if(slvl_unit) | 392 | if (slvl_unit) |
395 | slvl_shutdown(slvl_unit); | 393 | slvl_shutdown(slvl_unit); |
396 | } | 394 | } |
397 | 395 | ||