diff options
author | Akash Shende <akash0x53s@gmail.com> | 2015-01-16 08:42:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-18 00:27:53 -0500 |
commit | abee1cef7343197dd54e40df790ebbc8bd845d29 (patch) | |
tree | 0d1785e5b5bbe2464907024dbc910d2a0266124e | |
parent | d6e164e3215794f9920af69cd2c6794632773478 (diff) |
Drivers: Isdn: sc: Fixed coding style & spelling mistakes.
Fix some spelling mistakes, coding style and don't assign value to static var.
Signed-off-by: Akash Shende <akash0x53s@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/isdn/sc/init.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/isdn/sc/init.c b/drivers/isdn/sc/init.c index d6f19b168e8a..3597ef47b28a 100644 --- a/drivers/isdn/sc/init.c +++ b/drivers/isdn/sc/init.c | |||
@@ -30,7 +30,7 @@ static const char *boardname[] = { "DataCommute/BRI", "DataCommute/PRI", "TeleCo | |||
30 | static unsigned int io[] = {0, 0, 0, 0}; | 30 | static unsigned int io[] = {0, 0, 0, 0}; |
31 | static unsigned char irq[] = {0, 0, 0, 0}; | 31 | static unsigned char irq[] = {0, 0, 0, 0}; |
32 | static unsigned long ram[] = {0, 0, 0, 0}; | 32 | static unsigned long ram[] = {0, 0, 0, 0}; |
33 | static bool do_reset = 0; | 33 | static bool do_reset; |
34 | 34 | ||
35 | module_param_array(io, int, NULL, 0); | 35 | module_param_array(io, int, NULL, 0); |
36 | module_param_array(irq, byte, NULL, 0); | 36 | module_param_array(irq, byte, NULL, 0); |
@@ -104,13 +104,12 @@ static int __init sc_init(void) | |||
104 | io[b] + 0x400 * EXP_PAGE0); | 104 | io[b] + 0x400 * EXP_PAGE0); |
105 | continue; | 105 | continue; |
106 | } | 106 | } |
107 | } | 107 | } else { |
108 | else { | ||
109 | /* | 108 | /* |
110 | * Yes, probe for I/O Base | 109 | * Yes, probe for I/O Base |
111 | */ | 110 | */ |
112 | if (probe_exhasted) { | 111 | if (probe_exhasted) { |
113 | pr_debug("All probe addresses exhasted, skipping\n"); | 112 | pr_debug("All probe addresses exhausted, skipping\n"); |
114 | continue; | 113 | continue; |
115 | } | 114 | } |
116 | pr_debug("Probing for I/O...\n"); | 115 | pr_debug("Probing for I/O...\n"); |
@@ -169,8 +168,7 @@ static int __init sc_init(void) | |||
169 | model = identify_board(ram[b], io[b]); | 168 | model = identify_board(ram[b], io[b]); |
170 | release_region(ram[b], SRAM_PAGESIZE); | 169 | release_region(ram[b], SRAM_PAGESIZE); |
171 | } | 170 | } |
172 | } | 171 | } else { |
173 | else { | ||
174 | /* | 172 | /* |
175 | * Yes, probe for free RAM and look for | 173 | * Yes, probe for free RAM and look for |
176 | * a signature and id the board model | 174 | * a signature and id the board model |
@@ -187,7 +185,7 @@ static int __init sc_init(void) | |||
187 | ram[b] = i; | 185 | ram[b] = i; |
188 | break; | 186 | break; |
189 | } | 187 | } |
190 | pr_debug(" Unidentifed or inaccessible\n"); | 188 | pr_debug(" Unidentified or inaccessible\n"); |
191 | continue; | 189 | continue; |
192 | } | 190 | } |
193 | pr_debug(" request failed\n"); | 191 | pr_debug(" request failed\n"); |
@@ -337,8 +335,7 @@ static int __init sc_init(void) | |||
337 | sc_adapter[cinst]->interrupt = irq[b]; | 335 | sc_adapter[cinst]->interrupt = irq[b]; |
338 | if (request_irq(sc_adapter[cinst]->interrupt, interrupt_handler, | 336 | if (request_irq(sc_adapter[cinst]->interrupt, interrupt_handler, |
339 | 0, interface->id, | 337 | 0, interface->id, |
340 | (void *)(unsigned long) cinst)) | 338 | (void *)(unsigned long) cinst)) { |
341 | { | ||
342 | kfree(sc_adapter[cinst]->channel); | 339 | kfree(sc_adapter[cinst]->channel); |
343 | indicate_status(cinst, ISDN_STAT_UNLOAD, 0, NULL); /* Fix me */ | 340 | indicate_status(cinst, ISDN_STAT_UNLOAD, 0, NULL); /* Fix me */ |
344 | kfree(interface); | 341 | kfree(interface); |