diff options
Diffstat (limited to 'drivers/isdn/sc/init.c')
-rw-r--r-- | drivers/isdn/sc/init.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/drivers/isdn/sc/init.c b/drivers/isdn/sc/init.c index efefedea37b9..40b0df04ed9f 100644 --- a/drivers/isdn/sc/init.c +++ b/drivers/isdn/sc/init.c | |||
@@ -20,9 +20,9 @@ board *sc_adapter[MAX_CARDS]; | |||
20 | int cinst; | 20 | int cinst; |
21 | 21 | ||
22 | static char devname[] = "scX"; | 22 | static char devname[] = "scX"; |
23 | const char version[] = "2.0b1"; | 23 | static const char version[] = "2.0b1"; |
24 | 24 | ||
25 | const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCommute/BRI" }; | 25 | static const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCommute/BRI" }; |
26 | 26 | ||
27 | /* insmod set parameters */ | 27 | /* insmod set parameters */ |
28 | static unsigned int io[] = {0,0,0,0}; | 28 | static unsigned int io[] = {0,0,0,0}; |
@@ -35,26 +35,13 @@ module_param_array(irq, int, NULL, 0); | |||
35 | module_param_array(ram, int, NULL, 0); | 35 | module_param_array(ram, int, NULL, 0); |
36 | module_param(do_reset, bool, 0); | 36 | module_param(do_reset, bool, 0); |
37 | 37 | ||
38 | static int sup_irq[] = { 11, 10, 9, 5, 12, 14, 7, 3, 4, 6 }; | ||
39 | #define MAX_IRQS 10 | ||
40 | |||
41 | extern irqreturn_t interrupt_handler(int, void *, struct pt_regs *); | 38 | extern irqreturn_t interrupt_handler(int, void *, struct pt_regs *); |
42 | extern int sndpkt(int, int, int, struct sk_buff *); | 39 | extern int sndpkt(int, int, int, struct sk_buff *); |
43 | extern int command(isdn_ctrl *); | 40 | extern int command(isdn_ctrl *); |
44 | extern int indicate_status(int, int, ulong, char*); | 41 | extern int indicate_status(int, int, ulong, char*); |
45 | extern int reset(int); | 42 | extern int reset(int); |
46 | 43 | ||
47 | int identify_board(unsigned long, unsigned int); | 44 | static int identify_board(unsigned long, unsigned int); |
48 | |||
49 | int irq_supported(int irq_x) | ||
50 | { | ||
51 | int i; | ||
52 | for(i=0 ; i < MAX_IRQS ; i++) { | ||
53 | if(sup_irq[i] == irq_x) | ||
54 | return 1; | ||
55 | } | ||
56 | return 0; | ||
57 | } | ||
58 | 45 | ||
59 | static int __init sc_init(void) | 46 | static int __init sc_init(void) |
60 | { | 47 | { |
@@ -454,7 +441,7 @@ static void __exit sc_exit(void) | |||
454 | pr_info("SpellCaster ISA ISDN Adapter Driver Unloaded.\n"); | 441 | pr_info("SpellCaster ISA ISDN Adapter Driver Unloaded.\n"); |
455 | } | 442 | } |
456 | 443 | ||
457 | int identify_board(unsigned long rambase, unsigned int iobase) | 444 | static int identify_board(unsigned long rambase, unsigned int iobase) |
458 | { | 445 | { |
459 | unsigned int pgport; | 446 | unsigned int pgport; |
460 | unsigned long sig; | 447 | unsigned long sig; |