diff options
Diffstat (limited to 'drivers/net/tokenring/smctr.c')
-rw-r--r-- | drivers/net/tokenring/smctr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/tokenring/smctr.c b/drivers/net/tokenring/smctr.c index 67d2b596ce2..85a7f797d34 100644 --- a/drivers/net/tokenring/smctr.c +++ b/drivers/net/tokenring/smctr.c | |||
@@ -29,7 +29,6 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | #include <linux/config.h> | ||
33 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
34 | #include <linux/types.h> | 33 | #include <linux/types.h> |
35 | #include <linux/fcntl.h> | 34 | #include <linux/fcntl.h> |
@@ -532,7 +531,7 @@ static int __init smctr_chk_mca(struct net_device *dev) | |||
532 | dev->irq = 15; | 531 | dev->irq = 15; |
533 | break; | 532 | break; |
534 | } | 533 | } |
535 | if (request_irq(dev->irq, smctr_interrupt, SA_SHIRQ, smctr_name, dev)) { | 534 | if (request_irq(dev->irq, smctr_interrupt, IRQF_SHARED, smctr_name, dev)) { |
536 | release_region(dev->base_addr, SMCTR_IO_EXTENT); | 535 | release_region(dev->base_addr, SMCTR_IO_EXTENT); |
537 | return -ENODEV; | 536 | return -ENODEV; |
538 | } | 537 | } |
@@ -1062,7 +1061,7 @@ static int __init smctr_chk_isa(struct net_device *dev) | |||
1062 | goto out2; | 1061 | goto out2; |
1063 | } | 1062 | } |
1064 | 1063 | ||
1065 | if (request_irq(dev->irq, smctr_interrupt, SA_SHIRQ, smctr_name, dev)) | 1064 | if (request_irq(dev->irq, smctr_interrupt, IRQF_SHARED, smctr_name, dev)) |
1066 | goto out2; | 1065 | goto out2; |
1067 | 1066 | ||
1068 | /* Get 58x Rom Base */ | 1067 | /* Get 58x Rom Base */ |
@@ -5667,7 +5666,7 @@ module_param_array(io, int, NULL, 0); | |||
5667 | module_param_array(irq, int, NULL, 0); | 5666 | module_param_array(irq, int, NULL, 0); |
5668 | module_param(ringspeed, int, 0); | 5667 | module_param(ringspeed, int, 0); |
5669 | 5668 | ||
5670 | static struct net_device *setup_card(int n) | 5669 | static struct net_device * __init setup_card(int n) |
5671 | { | 5670 | { |
5672 | struct net_device *dev = alloc_trdev(sizeof(struct net_local)); | 5671 | struct net_device *dev = alloc_trdev(sizeof(struct net_local)); |
5673 | int err; | 5672 | int err; |
@@ -5697,9 +5696,8 @@ out: | |||
5697 | free_netdev(dev); | 5696 | free_netdev(dev); |
5698 | return ERR_PTR(err); | 5697 | return ERR_PTR(err); |
5699 | } | 5698 | } |
5700 | |||
5701 | 5699 | ||
5702 | int init_module(void) | 5700 | int __init init_module(void) |
5703 | { | 5701 | { |
5704 | int i, found = 0; | 5702 | int i, found = 0; |
5705 | struct net_device *dev; | 5703 | struct net_device *dev; |