diff options
Diffstat (limited to 'drivers/isdn/hisax/avm_a1.c')
-rw-r--r-- | drivers/isdn/hisax/avm_a1.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/drivers/isdn/hisax/avm_a1.c b/drivers/isdn/hisax/avm_a1.c index d9028e9b9b8f..eb6b432e261f 100644 --- a/drivers/isdn/hisax/avm_a1.c +++ b/drivers/isdn/hisax/avm_a1.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include "hscx.h" | 16 | #include "hscx.h" |
17 | #include "isdnl1.h" | 17 | #include "isdnl1.h" |
18 | 18 | ||
19 | extern const char *CardType[]; | ||
20 | static const char *avm_revision = "$Revision: 2.15.2.4 $"; | 19 | static const char *avm_revision = "$Revision: 2.15.2.4 $"; |
21 | 20 | ||
22 | #define AVM_A1_STAT_ISAC 0x01 | 21 | #define AVM_A1_STAT_ISAC 0x01 |
@@ -200,16 +199,14 @@ setup_avm_a1(struct IsdnCard *card) | |||
200 | cs->irq = card->para[0]; | 199 | cs->irq = card->para[0]; |
201 | if (!request_region(cs->hw.avm.cfg_reg, 8, "avm cfg")) { | 200 | if (!request_region(cs->hw.avm.cfg_reg, 8, "avm cfg")) { |
202 | printk(KERN_WARNING | 201 | printk(KERN_WARNING |
203 | "HiSax: %s config port %x-%x already in use\n", | 202 | "HiSax: AVM A1 config port %x-%x already in use\n", |
204 | CardType[card->typ], | ||
205 | cs->hw.avm.cfg_reg, | 203 | cs->hw.avm.cfg_reg, |
206 | cs->hw.avm.cfg_reg + 8); | 204 | cs->hw.avm.cfg_reg + 8); |
207 | return (0); | 205 | return (0); |
208 | } | 206 | } |
209 | if (!request_region(cs->hw.avm.isac + 32, 32, "HiSax isac")) { | 207 | if (!request_region(cs->hw.avm.isac + 32, 32, "HiSax isac")) { |
210 | printk(KERN_WARNING | 208 | printk(KERN_WARNING |
211 | "HiSax: %s isac ports %x-%x already in use\n", | 209 | "HiSax: AVM A1 isac ports %x-%x already in use\n", |
212 | CardType[cs->typ], | ||
213 | cs->hw.avm.isac + 32, | 210 | cs->hw.avm.isac + 32, |
214 | cs->hw.avm.isac + 64); | 211 | cs->hw.avm.isac + 64); |
215 | release_ioregs(cs, 0); | 212 | release_ioregs(cs, 0); |
@@ -217,16 +214,14 @@ setup_avm_a1(struct IsdnCard *card) | |||
217 | } | 214 | } |
218 | if (!request_region(cs->hw.avm.isacfifo, 1, "HiSax isac fifo")) { | 215 | if (!request_region(cs->hw.avm.isacfifo, 1, "HiSax isac fifo")) { |
219 | printk(KERN_WARNING | 216 | printk(KERN_WARNING |
220 | "HiSax: %s isac fifo port %x already in use\n", | 217 | "HiSax: AVM A1 isac fifo port %x already in use\n", |
221 | CardType[cs->typ], | ||
222 | cs->hw.avm.isacfifo); | 218 | cs->hw.avm.isacfifo); |
223 | release_ioregs(cs, 1); | 219 | release_ioregs(cs, 1); |
224 | return (0); | 220 | return (0); |
225 | } | 221 | } |
226 | if (!request_region(cs->hw.avm.hscx[0] + 32, 32, "HiSax hscx A")) { | 222 | if (!request_region(cs->hw.avm.hscx[0] + 32, 32, "HiSax hscx A")) { |
227 | printk(KERN_WARNING | 223 | printk(KERN_WARNING |
228 | "HiSax: %s hscx A ports %x-%x already in use\n", | 224 | "HiSax: AVM A1 hscx A ports %x-%x already in use\n", |
229 | CardType[cs->typ], | ||
230 | cs->hw.avm.hscx[0] + 32, | 225 | cs->hw.avm.hscx[0] + 32, |
231 | cs->hw.avm.hscx[0] + 64); | 226 | cs->hw.avm.hscx[0] + 64); |
232 | release_ioregs(cs, 3); | 227 | release_ioregs(cs, 3); |
@@ -234,16 +229,14 @@ setup_avm_a1(struct IsdnCard *card) | |||
234 | } | 229 | } |
235 | if (!request_region(cs->hw.avm.hscxfifo[0], 1, "HiSax hscx A fifo")) { | 230 | if (!request_region(cs->hw.avm.hscxfifo[0], 1, "HiSax hscx A fifo")) { |
236 | printk(KERN_WARNING | 231 | printk(KERN_WARNING |
237 | "HiSax: %s hscx A fifo port %x already in use\n", | 232 | "HiSax: AVM A1 hscx A fifo port %x already in use\n", |
238 | CardType[cs->typ], | ||
239 | cs->hw.avm.hscxfifo[0]); | 233 | cs->hw.avm.hscxfifo[0]); |
240 | release_ioregs(cs, 7); | 234 | release_ioregs(cs, 7); |
241 | return (0); | 235 | return (0); |
242 | } | 236 | } |
243 | if (!request_region(cs->hw.avm.hscx[1] + 32, 32, "HiSax hscx B")) { | 237 | if (!request_region(cs->hw.avm.hscx[1] + 32, 32, "HiSax hscx B")) { |
244 | printk(KERN_WARNING | 238 | printk(KERN_WARNING |
245 | "HiSax: %s hscx B ports %x-%x already in use\n", | 239 | "HiSax: AVM A1 hscx B ports %x-%x already in use\n", |
246 | CardType[cs->typ], | ||
247 | cs->hw.avm.hscx[1] + 32, | 240 | cs->hw.avm.hscx[1] + 32, |
248 | cs->hw.avm.hscx[1] + 64); | 241 | cs->hw.avm.hscx[1] + 64); |
249 | release_ioregs(cs, 0xf); | 242 | release_ioregs(cs, 0xf); |
@@ -251,8 +244,7 @@ setup_avm_a1(struct IsdnCard *card) | |||
251 | } | 244 | } |
252 | if (!request_region(cs->hw.avm.hscxfifo[1], 1, "HiSax hscx B fifo")) { | 245 | if (!request_region(cs->hw.avm.hscxfifo[1], 1, "HiSax hscx B fifo")) { |
253 | printk(KERN_WARNING | 246 | printk(KERN_WARNING |
254 | "HiSax: %s hscx B fifo port %x already in use\n", | 247 | "HiSax: AVM A1 hscx B fifo port %x already in use\n", |
255 | CardType[cs->typ], | ||
256 | cs->hw.avm.hscxfifo[1]); | 248 | cs->hw.avm.hscxfifo[1]); |
257 | release_ioregs(cs, 0x1f); | 249 | release_ioregs(cs, 0x1f); |
258 | return (0); | 250 | return (0); |
@@ -284,9 +276,8 @@ setup_avm_a1(struct IsdnCard *card) | |||
284 | printk(KERN_INFO "AVM A1: Byte at %x is %x\n", | 276 | printk(KERN_INFO "AVM A1: Byte at %x is %x\n", |
285 | cs->hw.avm.cfg_reg, val); | 277 | cs->hw.avm.cfg_reg, val); |
286 | 278 | ||
287 | printk(KERN_INFO | 279 | printk(KERN_INFO "HiSax: AVM A1 config irq:%d cfg:0x%X\n", |
288 | "HiSax: %s config irq:%d cfg:0x%X\n", | 280 | cs->irq, |
289 | CardType[cs->typ], cs->irq, | ||
290 | cs->hw.avm.cfg_reg); | 281 | cs->hw.avm.cfg_reg); |
291 | printk(KERN_INFO | 282 | printk(KERN_INFO |
292 | "HiSax: isac:0x%X/0x%X\n", | 283 | "HiSax: isac:0x%X/0x%X\n", |