aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax')
-rw-r--r--drivers/isdn/hisax/asuscom.c7
-rw-r--r--drivers/isdn/hisax/avm_a1.c27
-rw-r--r--drivers/isdn/hisax/avm_pci.c2
-rw-r--r--drivers/isdn/hisax/bkm_a4t.c19
-rw-r--r--drivers/isdn/hisax/bkm_a8.c31
-rw-r--r--drivers/isdn/hisax/config.c14
-rw-r--r--drivers/isdn/hisax/diva.c2
-rw-r--r--drivers/isdn/hisax/elsa.c6
-rw-r--r--drivers/isdn/hisax/elsa_ser.c4
-rw-r--r--drivers/isdn/hisax/gazel.c5
-rw-r--r--drivers/isdn/hisax/hfc_pci.c2
-rw-r--r--drivers/isdn/hisax/hfc_sx.c4
-rw-r--r--drivers/isdn/hisax/hfc_usb.c6
-rw-r--r--drivers/isdn/hisax/hfcscard.c2
-rw-r--r--drivers/isdn/hisax/hisax.h2
-rw-r--r--drivers/isdn/hisax/hisax_cfg.h2
-rw-r--r--drivers/isdn/hisax/hisax_debug.h6
-rw-r--r--drivers/isdn/hisax/hisax_fcpcipnp.c12
-rw-r--r--drivers/isdn/hisax/isurf.c13
-rw-r--r--drivers/isdn/hisax/ix1_micro.c11
-rw-r--r--drivers/isdn/hisax/mic.c5
-rw-r--r--drivers/isdn/hisax/netjet.h2
-rw-r--r--drivers/isdn/hisax/niccy.c21
-rw-r--r--drivers/isdn/hisax/nj_s.c3
-rw-r--r--drivers/isdn/hisax/nj_u.c4
-rw-r--r--drivers/isdn/hisax/s0box.c13
-rw-r--r--drivers/isdn/hisax/saphir.c8
-rw-r--r--drivers/isdn/hisax/sedlbauer.c2
-rw-r--r--drivers/isdn/hisax/sportster.c11
-rw-r--r--drivers/isdn/hisax/st5481.h10
-rw-r--r--drivers/isdn/hisax/st5481_usb.c2
-rw-r--r--drivers/isdn/hisax/teleint.c5
-rw-r--r--drivers/isdn/hisax/teles3.c2
-rw-r--r--drivers/isdn/hisax/telespci.c5
-rw-r--r--drivers/isdn/hisax/w6692.c2
35 files changed, 115 insertions, 157 deletions
diff --git a/drivers/isdn/hisax/asuscom.c b/drivers/isdn/hisax/asuscom.c
index 61e69e9c4aa9..1f879b500d83 100644
--- a/drivers/isdn/hisax/asuscom.c
+++ b/drivers/isdn/hisax/asuscom.c
@@ -20,8 +20,6 @@
20#include "hscx.h" 20#include "hscx.h"
21#include "isdnl1.h" 21#include "isdnl1.h"
22 22
23extern const char *CardType[];
24
25static const char *Asuscom_revision = "$Revision: 1.14.2.4 $"; 23static const char *Asuscom_revision = "$Revision: 1.14.2.4 $";
26 24
27#define byteout(addr,val) outb(val,addr) 25#define byteout(addr,val) outb(val,addr)
@@ -346,7 +344,7 @@ setup_asuscom(struct IsdnCard *card)
346 err = pnp_activate_dev(pnp_d); 344 err = pnp_activate_dev(pnp_d);
347 if (err<0) { 345 if (err<0) {
348 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 346 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
349 __FUNCTION__, err); 347 __func__, err);
350 return(0); 348 return(0);
351 } 349 }
352 card->para[1] = pnp_port_start(pnp_d, 0); 350 card->para[1] = pnp_port_start(pnp_d, 0);
@@ -376,8 +374,7 @@ setup_asuscom(struct IsdnCard *card)
376 cs->irq = card->para[0]; 374 cs->irq = card->para[0];
377 if (!request_region(cs->hw.asus.cfg_reg, bytecnt, "asuscom isdn")) { 375 if (!request_region(cs->hw.asus.cfg_reg, bytecnt, "asuscom isdn")) {
378 printk(KERN_WARNING 376 printk(KERN_WARNING
379 "HiSax: %s config port %x-%x already in use\n", 377 "HiSax: ISDNLink config port %x-%x already in use\n",
380 CardType[card->typ],
381 cs->hw.asus.cfg_reg, 378 cs->hw.asus.cfg_reg,
382 cs->hw.asus.cfg_reg + bytecnt); 379 cs->hw.asus.cfg_reg + bytecnt);
383 return (0); 380 return (0);
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
19extern const char *CardType[];
20static const char *avm_revision = "$Revision: 2.15.2.4 $"; 19static 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",
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c
index 0f1db1f669b2..7cabc5a19492 100644
--- a/drivers/isdn/hisax/avm_pci.c
+++ b/drivers/isdn/hisax/avm_pci.c
@@ -797,7 +797,7 @@ static int __devinit avm_pnp_setup(struct IsdnCardState *cs)
797 err = pnp_activate_dev(pnp_avm_d); 797 err = pnp_activate_dev(pnp_avm_d);
798 if (err<0) { 798 if (err<0) {
799 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 799 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
800 __FUNCTION__, err); 800 __func__, err);
801 return(0); 801 return(0);
802 } 802 }
803 cs->hw.avm.cfg_reg = 803 cs->hw.avm.cfg_reg =
diff --git a/drivers/isdn/hisax/bkm_a4t.c b/drivers/isdn/hisax/bkm_a4t.c
index 3d1bdc8431ad..9ca2ee54cc94 100644
--- a/drivers/isdn/hisax/bkm_a4t.c
+++ b/drivers/isdn/hisax/bkm_a4t.c
@@ -20,8 +20,6 @@
20#include <linux/pci.h> 20#include <linux/pci.h>
21#include "bkm_ax.h" 21#include "bkm_ax.h"
22 22
23extern const char *CardType[];
24
25static const char *bkm_a4t_revision = "$Revision: 1.22.2.4 $"; 23static const char *bkm_a4t_revision = "$Revision: 1.22.2.4 $";
26 24
27 25
@@ -284,15 +282,16 @@ static int __devinit a4t_cs_init(struct IsdnCard *card,
284 I20_REGISTER_FILE *pI20_Regs; 282 I20_REGISTER_FILE *pI20_Regs;
285 283
286 if (!cs->irq) { /* IRQ range check ?? */ 284 if (!cs->irq) { /* IRQ range check ?? */
287 printk(KERN_WARNING "HiSax: %s: No IRQ\n", CardType[card->typ]); 285 printk(KERN_WARNING "HiSax: Telekom A4T: No IRQ\n");
288 return (0); 286 return (0);
289 } 287 }
290 cs->hw.ax.base = (long) ioremap(pci_memaddr, 4096); 288 cs->hw.ax.base = (long) ioremap(pci_memaddr, 4096);
291 /* Check suspecious address */ 289 /* Check suspecious address */
292 pI20_Regs = (I20_REGISTER_FILE *) (cs->hw.ax.base); 290 pI20_Regs = (I20_REGISTER_FILE *) (cs->hw.ax.base);
293 if ((pI20_Regs->i20IntStatus & 0x8EFFFFFF) != 0) { 291 if ((pI20_Regs->i20IntStatus & 0x8EFFFFFF) != 0) {
294 printk(KERN_WARNING "HiSax: %s address %lx-%lx suspecious\n", 292 printk(KERN_WARNING "HiSax: Telekom A4T address "
295 CardType[card->typ], cs->hw.ax.base, cs->hw.ax.base + 4096); 293 "%lx-%lx suspicious\n",
294 cs->hw.ax.base, cs->hw.ax.base + 4096);
296 iounmap((void *) cs->hw.ax.base); 295 iounmap((void *) cs->hw.ax.base);
297 cs->hw.ax.base = 0; 296 cs->hw.ax.base = 0;
298 return (0); 297 return (0);
@@ -302,8 +301,9 @@ static int __devinit a4t_cs_init(struct IsdnCard *card,
302 cs->hw.ax.isac_ale = GCS_1; 301 cs->hw.ax.isac_ale = GCS_1;
303 cs->hw.ax.jade_ale = GCS_3; 302 cs->hw.ax.jade_ale = GCS_3;
304 303
305 printk(KERN_INFO "HiSax: %s: Card configured at 0x%lX IRQ %d\n", 304 printk(KERN_INFO "HiSax: Telekom A4T: Card configured at "
306 CardType[card->typ], cs->hw.ax.base, cs->irq); 305 "0x%lX IRQ %d\n",
306 cs->hw.ax.base, cs->irq);
307 307
308 setup_isac(cs); 308 setup_isac(cs);
309 cs->readisac = &ReadISAC; 309 cs->readisac = &ReadISAC;
@@ -349,11 +349,12 @@ setup_bkm_a4t(struct IsdnCard *card)
349 break; 349 break;
350 } 350 }
351 if (!found) { 351 if (!found) {
352 printk(KERN_WARNING "HiSax: %s: Card not found\n", CardType[card->typ]); 352 printk(KERN_WARNING "HiSax: Telekom A4T: Card not found\n");
353 return (0); 353 return (0);
354 } 354 }
355 if (!pci_memaddr) { 355 if (!pci_memaddr) {
356 printk(KERN_WARNING "HiSax: %s: No Memory base address\n", CardType[card->typ]); 356 printk(KERN_WARNING "HiSax: Telekom A4T: "
357 "No Memory base address\n");
357 return (0); 358 return (0);
358 } 359 }
359 360
diff --git a/drivers/isdn/hisax/bkm_a8.c b/drivers/isdn/hisax/bkm_a8.c
index 99ef3b43fcd7..e1ff4717a8a6 100644
--- a/drivers/isdn/hisax/bkm_a8.c
+++ b/drivers/isdn/hisax/bkm_a8.c
@@ -22,8 +22,6 @@
22 22
23#define ATTEMPT_PCI_REMAPPING /* Required for PLX rev 1 */ 23#define ATTEMPT_PCI_REMAPPING /* Required for PLX rev 1 */
24 24
25extern const char *CardType[];
26
27static const char sct_quadro_revision[] = "$Revision: 1.22.2.4 $"; 25static const char sct_quadro_revision[] = "$Revision: 1.22.2.4 $";
28 26
29static const char *sct_quadro_subtypes[] = 27static const char *sct_quadro_subtypes[] =
@@ -181,8 +179,7 @@ bkm_interrupt_ipac(int intno, void *dev_id)
181 goto Start_IPAC; 179 goto Start_IPAC;
182 } 180 }
183 if (!icnt) 181 if (!icnt)
184 printk(KERN_WARNING "HiSax: %s (%s) IRQ LOOP\n", 182 printk(KERN_WARNING "HiSax: Scitel Quadro (%s) IRQ LOOP\n",
185 CardType[cs->typ],
186 sct_quadro_subtypes[cs->subtyp]); 183 sct_quadro_subtypes[cs->subtyp]);
187 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_MASK, 0xFF); 184 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_MASK, 0xFF);
188 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_MASK, 0xC0); 185 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_MASK, 0xC0);
@@ -296,8 +293,8 @@ setup_sct_quadro(struct IsdnCard *card)
296 if (card->para[0] >= SCT_1 && card->para[0] <= SCT_4) 293 if (card->para[0] >= SCT_1 && card->para[0] <= SCT_4)
297 cs->subtyp = card->para[0]; 294 cs->subtyp = card->para[0];
298 else { 295 else {
299 printk(KERN_WARNING "HiSax: %s: Invalid subcontroller in configuration, default to 1\n", 296 printk(KERN_WARNING "HiSax: Scitel Quadro: Invalid "
300 CardType[card->typ]); 297 "subcontroller in configuration, default to 1\n");
301 return (0); 298 return (0);
302 } 299 }
303 if ((cs->subtyp != SCT_1) && ((sub_sys_id != PCI_DEVICE_ID_BERKOM_SCITEL_QUADRO) || 300 if ((cs->subtyp != SCT_1) && ((sub_sys_id != PCI_DEVICE_ID_BERKOM_SCITEL_QUADRO) ||
@@ -322,16 +319,16 @@ setup_sct_quadro(struct IsdnCard *card)
322 } 319 }
323 } 320 }
324 if (!found) { 321 if (!found) {
325 printk(KERN_WARNING "HiSax: %s (%s): Card not found\n", 322 printk(KERN_WARNING "HiSax: Scitel Quadro (%s): "
326 CardType[card->typ], 323 "Card not found\n",
327 sct_quadro_subtypes[cs->subtyp]); 324 sct_quadro_subtypes[cs->subtyp]);
328 return (0); 325 return (0);
329 } 326 }
330#ifdef ATTEMPT_PCI_REMAPPING 327#ifdef ATTEMPT_PCI_REMAPPING
331/* HACK: PLX revision 1 bug: PLX address bit 7 must not be set */ 328/* HACK: PLX revision 1 bug: PLX address bit 7 must not be set */
332 if ((pci_ioaddr1 & 0x80) && (dev_a8->revision == 1)) { 329 if ((pci_ioaddr1 & 0x80) && (dev_a8->revision == 1)) {
333 printk(KERN_WARNING "HiSax: %s (%s): PLX rev 1, remapping required!\n", 330 printk(KERN_WARNING "HiSax: Scitel Quadro (%s): "
334 CardType[card->typ], 331 "PLX rev 1, remapping required!\n",
335 sct_quadro_subtypes[cs->subtyp]); 332 sct_quadro_subtypes[cs->subtyp]);
336 /* Restart PCI negotiation */ 333 /* Restart PCI negotiation */
337 pci_write_config_dword(dev_a8, PCI_BASE_ADDRESS_1, (u_int) - 1); 334 pci_write_config_dword(dev_a8, PCI_BASE_ADDRESS_1, (u_int) - 1);
@@ -344,8 +341,7 @@ setup_sct_quadro(struct IsdnCard *card)
344#endif /* End HACK */ 341#endif /* End HACK */
345 } 342 }
346 if (!pci_irq) { /* IRQ range check ?? */ 343 if (!pci_irq) { /* IRQ range check ?? */
347 printk(KERN_WARNING "HiSax: %s (%s): No IRQ\n", 344 printk(KERN_WARNING "HiSax: Scitel Quadro (%s): No IRQ\n",
348 CardType[card->typ],
349 sct_quadro_subtypes[cs->subtyp]); 345 sct_quadro_subtypes[cs->subtyp]);
350 return (0); 346 return (0);
351 } 347 }
@@ -355,8 +351,8 @@ setup_sct_quadro(struct IsdnCard *card)
355 pci_read_config_dword(dev_a8, PCI_BASE_ADDRESS_4, &pci_ioaddr4); 351 pci_read_config_dword(dev_a8, PCI_BASE_ADDRESS_4, &pci_ioaddr4);
356 pci_read_config_dword(dev_a8, PCI_BASE_ADDRESS_5, &pci_ioaddr5); 352 pci_read_config_dword(dev_a8, PCI_BASE_ADDRESS_5, &pci_ioaddr5);
357 if (!pci_ioaddr1 || !pci_ioaddr2 || !pci_ioaddr3 || !pci_ioaddr4 || !pci_ioaddr5) { 353 if (!pci_ioaddr1 || !pci_ioaddr2 || !pci_ioaddr3 || !pci_ioaddr4 || !pci_ioaddr5) {
358 printk(KERN_WARNING "HiSax: %s (%s): No IO base address(es)\n", 354 printk(KERN_WARNING "HiSax: Scitel Quadro (%s): "
359 CardType[card->typ], 355 "No IO base address(es)\n",
360 sct_quadro_subtypes[cs->subtyp]); 356 sct_quadro_subtypes[cs->subtyp]);
361 return (0); 357 return (0);
362 } 358 }
@@ -411,8 +407,8 @@ setup_sct_quadro(struct IsdnCard *card)
411 /* For isac and hscx data path */ 407 /* For isac and hscx data path */
412 cs->hw.ax.data_adr = cs->hw.ax.base + 4; 408 cs->hw.ax.data_adr = cs->hw.ax.base + 4;
413 409
414 printk(KERN_INFO "HiSax: %s (%s) configured at 0x%.4lX, 0x%.4lX, 0x%.4lX and IRQ %d\n", 410 printk(KERN_INFO "HiSax: Scitel Quadro (%s) configured at "
415 CardType[card->typ], 411 "0x%.4lX, 0x%.4lX, 0x%.4lX and IRQ %d\n",
416 sct_quadro_subtypes[cs->subtyp], 412 sct_quadro_subtypes[cs->subtyp],
417 cs->hw.ax.plx_adr, 413 cs->hw.ax.plx_adr,
418 cs->hw.ax.base, 414 cs->hw.ax.base,
@@ -432,8 +428,7 @@ setup_sct_quadro(struct IsdnCard *card)
432 cs->cardmsg = &BKM_card_msg; 428 cs->cardmsg = &BKM_card_msg;
433 cs->irq_func = &bkm_interrupt_ipac; 429 cs->irq_func = &bkm_interrupt_ipac;
434 430
435 printk(KERN_INFO "HiSax: %s (%s): IPAC Version %d\n", 431 printk(KERN_INFO "HiSax: Scitel Quadro (%s): IPAC Version %d\n",
436 CardType[card->typ],
437 sct_quadro_subtypes[cs->subtyp], 432 sct_quadro_subtypes[cs->subtyp],
438 readreg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_ID)); 433 readreg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_ID));
439 return (1); 434 return (1);
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c
index a0ee43c04dd5..84d75a3f5d17 100644
--- a/drivers/isdn/hisax/config.c
+++ b/drivers/isdn/hisax/config.c
@@ -1169,7 +1169,9 @@ outf_cs:
1169/* Used from an exported function but calls __devinit functions. 1169/* Used from an exported function but calls __devinit functions.
1170 * Tell modpost not to warn (__ref) 1170 * Tell modpost not to warn (__ref)
1171 */ 1171 */
1172static int __ref checkcard(int cardnr, char *id, int *busy_flag, struct module *lockowner) 1172static int __ref checkcard(int cardnr, char *id, int *busy_flag,
1173 struct module *lockowner,
1174 hisax_setup_func_t card_setup)
1173{ 1175{
1174 int ret; 1176 int ret;
1175 struct IsdnCard *card = cards + cardnr; 1177 struct IsdnCard *card = cards + cardnr;
@@ -1187,7 +1189,7 @@ static int __ref checkcard(int cardnr, char *id, int *busy_flag, struct module *
1187 (card->protocol == ISDN_PTYPE_NI1) ? "NI1" : 1189 (card->protocol == ISDN_PTYPE_NI1) ? "NI1" :
1188 "NONE", cs->iif.id, cs->myid); 1190 "NONE", cs->iif.id, cs->myid);
1189 1191
1190 ret = hisax_cs_setup_card(card); 1192 ret = card_setup(card);
1191 if (!ret) { 1193 if (!ret) {
1192 ll_unload(cs); 1194 ll_unload(cs);
1193 goto outf_cs; 1195 goto outf_cs;
@@ -1241,7 +1243,8 @@ static int HiSax_inithardware(int *busy_flag)
1241 else 1243 else
1242 sprintf(ids, "%s%d", id, i); 1244 sprintf(ids, "%s%d", id, i);
1243 } 1245 }
1244 if (checkcard(i, ids, busy_flag, THIS_MODULE)) { 1246 if (checkcard(i, ids, busy_flag, THIS_MODULE,
1247 hisax_cs_setup_card)) {
1245 foundcards++; 1248 foundcards++;
1246 i++; 1249 i++;
1247 } else { 1250 } else {
@@ -1549,7 +1552,8 @@ int hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card)
1549 sprintf(ids, "HiSax%d", nrcards); 1552 sprintf(ids, "HiSax%d", nrcards);
1550 else 1553 else
1551 sprintf(ids, "HiSax"); 1554 sprintf(ids, "HiSax");
1552 if (!checkcard(nrcards, ids, busy_flag, THIS_MODULE)) 1555 if (!checkcard(nrcards, ids, busy_flag, THIS_MODULE,
1556 hisax_cs_setup_card))
1553 goto error; 1557 goto error;
1554 1558
1555 ret = nrcards; 1559 ret = nrcards;
@@ -1595,7 +1599,7 @@ int hisax_register(struct hisax_d_if *hisax_d_if, struct hisax_b_if *b_if[],
1595 cards[i].protocol = protocol; 1599 cards[i].protocol = protocol;
1596 sprintf(id, "%s%d", name, i); 1600 sprintf(id, "%s%d", name, i);
1597 nrcards++; 1601 nrcards++;
1598 retval = checkcard(i, id, NULL, hisax_d_if->owner); 1602 retval = checkcard(i, id, NULL, hisax_d_if->owner, hisax_cs_setup_card);
1599 if (retval == 0) { // yuck 1603 if (retval == 0) { // yuck
1600 cards[i].typ = 0; 1604 cards[i].typ = 0;
1601 nrcards--; 1605 nrcards--;
diff --git a/drivers/isdn/hisax/diva.c b/drivers/isdn/hisax/diva.c
index 2d670856d141..018bd293e580 100644
--- a/drivers/isdn/hisax/diva.c
+++ b/drivers/isdn/hisax/diva.c
@@ -1088,7 +1088,7 @@ static int __devinit setup_diva_isapnp(struct IsdnCard *card)
1088 err = pnp_activate_dev(pnp_d); 1088 err = pnp_activate_dev(pnp_d);
1089 if (err<0) { 1089 if (err<0) {
1090 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 1090 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
1091 __FUNCTION__, err); 1091 __func__, err);
1092 return(0); 1092 return(0);
1093 } 1093 }
1094 card->para[1] = pnp_port_start(pnp_d, 0); 1094 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/elsa.c b/drivers/isdn/hisax/elsa.c
index d272d8ce6537..aa29d1cf16af 100644
--- a/drivers/isdn/hisax/elsa.c
+++ b/drivers/isdn/hisax/elsa.c
@@ -299,7 +299,7 @@ elsa_interrupt(int intno, void *dev_id)
299 val = serial_inp(cs, UART_IIR); 299 val = serial_inp(cs, UART_IIR);
300 if (!(val & UART_IIR_NO_INT)) { 300 if (!(val & UART_IIR_NO_INT)) {
301 debugl1(cs,"IIR %02x", val); 301 debugl1(cs,"IIR %02x", val);
302 rs_interrupt_elsa(intno, cs); 302 rs_interrupt_elsa(cs);
303 } 303 }
304 } 304 }
305#endif 305#endif
@@ -379,7 +379,7 @@ elsa_interrupt_ipac(int intno, void *dev_id)
379 val = serial_inp(cs, UART_IIR); 379 val = serial_inp(cs, UART_IIR);
380 if (!(val & UART_IIR_NO_INT)) { 380 if (!(val & UART_IIR_NO_INT)) {
381 debugl1(cs,"IIR %02x", val); 381 debugl1(cs,"IIR %02x", val);
382 rs_interrupt_elsa(intno, cs); 382 rs_interrupt_elsa(cs);
383 } 383 }
384 } 384 }
385#endif 385#endif
@@ -937,7 +937,7 @@ setup_elsa_isapnp(struct IsdnCard *card)
937 err = pnp_activate_dev(pnp_d); 937 err = pnp_activate_dev(pnp_d);
938 if (err<0) { 938 if (err<0) {
939 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 939 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
940 __FUNCTION__, err); 940 __func__, err);
941 return(0); 941 return(0);
942 } 942 }
943 card->para[1] = pnp_port_start(pnp_d, 0); 943 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/elsa_ser.c b/drivers/isdn/hisax/elsa_ser.c
index 1642dca988a1..f181db464392 100644
--- a/drivers/isdn/hisax/elsa_ser.c
+++ b/drivers/isdn/hisax/elsa_ser.c
@@ -384,13 +384,13 @@ static inline void transmit_chars(struct IsdnCardState *cs, int *intr_done)
384} 384}
385 385
386 386
387static void rs_interrupt_elsa(int irq, struct IsdnCardState *cs) 387static void rs_interrupt_elsa(struct IsdnCardState *cs)
388{ 388{
389 int status, iir, msr; 389 int status, iir, msr;
390 int pass_counter = 0; 390 int pass_counter = 0;
391 391
392#ifdef SERIAL_DEBUG_INTR 392#ifdef SERIAL_DEBUG_INTR
393 printk("rs_interrupt_single(%d)...", irq); 393 printk(KERN_DEBUG "rs_interrupt_single(%d)...", cs->irq);
394#endif 394#endif
395 395
396 do { 396 do {
diff --git a/drivers/isdn/hisax/gazel.c b/drivers/isdn/hisax/gazel.c
index f66620ad8e7c..0ea3b4607680 100644
--- a/drivers/isdn/hisax/gazel.c
+++ b/drivers/isdn/hisax/gazel.c
@@ -19,7 +19,6 @@
19#include "ipac.h" 19#include "ipac.h"
20#include <linux/pci.h> 20#include <linux/pci.h>
21 21
22extern const char *CardType[];
23static const char *gazel_revision = "$Revision: 2.19.2.4 $"; 22static const char *gazel_revision = "$Revision: 2.19.2.4 $";
24 23
25#define R647 1 24#define R647 1
@@ -479,8 +478,8 @@ reserve_regions(struct IsdnCard *card, struct IsdnCardState *cs)
479 return 0; 478 return 0;
480 479
481 error: 480 error:
482 printk(KERN_WARNING "Gazel: %s io ports 0x%x-0x%x already in use\n", 481 printk(KERN_WARNING "Gazel: io ports 0x%x-0x%x already in use\n",
483 CardType[cs->typ], adr, adr + len); 482 adr, adr + len);
484 return 1; 483 return 1;
485} 484}
486 485
diff --git a/drivers/isdn/hisax/hfc_pci.c b/drivers/isdn/hisax/hfc_pci.c
index fba8b624ffcf..f1265667b062 100644
--- a/drivers/isdn/hisax/hfc_pci.c
+++ b/drivers/isdn/hisax/hfc_pci.c
@@ -22,8 +22,6 @@
22#include <linux/pci.h> 22#include <linux/pci.h>
23#include <linux/interrupt.h> 23#include <linux/interrupt.h>
24 24
25extern const char *CardType[];
26
27static const char *hfcpci_revision = "$Revision: 1.48.2.4 $"; 25static const char *hfcpci_revision = "$Revision: 1.48.2.4 $";
28 26
29/* table entry in the PCI devices list */ 27/* table entry in the PCI devices list */
diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c
index 05482d2688e3..d92e8d6c2ae2 100644
--- a/drivers/isdn/hisax/hfc_sx.c
+++ b/drivers/isdn/hisax/hfc_sx.c
@@ -18,8 +18,6 @@
18#include <linux/interrupt.h> 18#include <linux/interrupt.h>
19#include <linux/isapnp.h> 19#include <linux/isapnp.h>
20 20
21extern const char *CardType[];
22
23static const char *hfcsx_revision = "$Revision: 1.12.2.5 $"; 21static const char *hfcsx_revision = "$Revision: 1.12.2.5 $";
24 22
25/***************************************/ 23/***************************************/
@@ -1419,7 +1417,7 @@ setup_hfcsx(struct IsdnCard *card)
1419 err = pnp_activate_dev(pnp_d); 1417 err = pnp_activate_dev(pnp_d);
1420 if (err<0) { 1418 if (err<0) {
1421 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 1419 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
1422 __FUNCTION__, err); 1420 __func__, err);
1423 return(0); 1421 return(0);
1424 } 1422 }
1425 card->para[1] = pnp_port_start(pnp_d, 0); 1423 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/hfc_usb.c b/drivers/isdn/hisax/hfc_usb.c
index 98b0149bca68..8df889b0c1a9 100644
--- a/drivers/isdn/hisax/hfc_usb.c
+++ b/drivers/isdn/hisax/hfc_usb.c
@@ -905,7 +905,7 @@ rx_int_complete(struct urb *urb)
905 if (status) { 905 if (status) {
906 printk(KERN_INFO 906 printk(KERN_INFO
907 "HFC-S USB: %s error resubmitting URB fifo(%d)\n", 907 "HFC-S USB: %s error resubmitting URB fifo(%d)\n",
908 __FUNCTION__, fifon); 908 __func__, fifon);
909 } 909 }
910} 910}
911 911
@@ -1543,14 +1543,14 @@ hfc_usb_disconnect(struct usb_interface *intf)
1543 stop_isoc_chain(&context->fifos[i]); 1543 stop_isoc_chain(&context->fifos[i]);
1544 DBG(HFCUSB_DBG_INIT, 1544 DBG(HFCUSB_DBG_INIT,
1545 "HFC-S USB: %s stopping ISOC chain Fifo(%i)", 1545 "HFC-S USB: %s stopping ISOC chain Fifo(%i)",
1546 __FUNCTION__, i); 1546 __func__, i);
1547 } 1547 }
1548 } else { 1548 } else {
1549 if (context->fifos[i].active > 0) { 1549 if (context->fifos[i].active > 0) {
1550 context->fifos[i].active = 0; 1550 context->fifos[i].active = 0;
1551 DBG(HFCUSB_DBG_INIT, 1551 DBG(HFCUSB_DBG_INIT,
1552 "HFC-S USB: %s unlinking URB for Fifo(%i)", 1552 "HFC-S USB: %s unlinking URB for Fifo(%i)",
1553 __FUNCTION__, i); 1553 __func__, i);
1554 } 1554 }
1555 usb_kill_urb(context->fifos[i].urb); 1555 usb_kill_urb(context->fifos[i].urb);
1556 usb_free_urb(context->fifos[i].urb); 1556 usb_free_urb(context->fifos[i].urb);
diff --git a/drivers/isdn/hisax/hfcscard.c b/drivers/isdn/hisax/hfcscard.c
index 909d6709ec16..cf082665cc8b 100644
--- a/drivers/isdn/hisax/hfcscard.c
+++ b/drivers/isdn/hisax/hfcscard.c
@@ -193,7 +193,7 @@ setup_hfcs(struct IsdnCard *card)
193 err = pnp_activate_dev(pnp_d); 193 err = pnp_activate_dev(pnp_d);
194 if (err<0) { 194 if (err<0) {
195 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 195 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
196 __FUNCTION__, err); 196 __func__, err);
197 return(0); 197 return(0);
198 } 198 }
199 card->para[1] = pnp_port_start(pnp_d, 0); 199 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h
index 34733c903df7..e8d429fda846 100644
--- a/drivers/isdn/hisax/hisax.h
+++ b/drivers/isdn/hisax/hisax.h
@@ -925,7 +925,7 @@ struct IsdnCardState {
925 int (*cardmsg) (struct IsdnCardState *, int, void *); 925 int (*cardmsg) (struct IsdnCardState *, int, void *);
926 void (*setstack_d) (struct PStack *, struct IsdnCardState *); 926 void (*setstack_d) (struct PStack *, struct IsdnCardState *);
927 void (*DC_Close) (struct IsdnCardState *); 927 void (*DC_Close) (struct IsdnCardState *);
928 int (*irq_func) (int, void *); 928 irq_handler_t irq_func;
929 int (*auxcmd) (struct IsdnCardState *, isdn_ctrl *); 929 int (*auxcmd) (struct IsdnCardState *, isdn_ctrl *);
930 struct Channel channel[2+MAX_WAITING_CALLS]; 930 struct Channel channel[2+MAX_WAITING_CALLS];
931 struct BCState bcs[2+MAX_WAITING_CALLS]; 931 struct BCState bcs[2+MAX_WAITING_CALLS];
diff --git a/drivers/isdn/hisax/hisax_cfg.h b/drivers/isdn/hisax/hisax_cfg.h
index ca3fe6259bca..17a2fea64efe 100644
--- a/drivers/isdn/hisax/hisax_cfg.h
+++ b/drivers/isdn/hisax/hisax_cfg.h
@@ -60,5 +60,7 @@ struct IsdnCard {
60 IsdnCardState_t *cs; 60 IsdnCardState_t *cs;
61}; 61};
62 62
63typedef int (*hisax_setup_func_t)(struct IsdnCard *card);
64
63extern void HiSax_closecard(int); 65extern void HiSax_closecard(int);
64extern int hisax_init_pcmcia(void *, int *, IsdnCard_t *); 66extern int hisax_init_pcmcia(void *, int *, IsdnCard_t *);
diff --git a/drivers/isdn/hisax/hisax_debug.h b/drivers/isdn/hisax/hisax_debug.h
index ceafecdb1037..5ed3b1c44184 100644
--- a/drivers/isdn/hisax/hisax_debug.h
+++ b/drivers/isdn/hisax/hisax_debug.h
@@ -27,14 +27,14 @@
27 27
28#define DBG(level, format, arg...) do { \ 28#define DBG(level, format, arg...) do { \
29if (level & __debug_variable) \ 29if (level & __debug_variable) \
30printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ 30printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
31} while (0) 31} while (0)
32 32
33#define DBG_PACKET(level,data,count) \ 33#define DBG_PACKET(level,data,count) \
34 if (level & __debug_variable) dump_packet(__FUNCTION__,data,count) 34 if (level & __debug_variable) dump_packet(__func__,data,count)
35 35
36#define DBG_SKB(level,skb) \ 36#define DBG_SKB(level,skb) \
37 if ((level & __debug_variable) && skb) dump_packet(__FUNCTION__,skb->data,skb->len) 37 if ((level & __debug_variable) && skb) dump_packet(__func__,skb->data,skb->len)
38 38
39 39
40static void __attribute__((unused)) 40static void __attribute__((unused))
diff --git a/drivers/isdn/hisax/hisax_fcpcipnp.c b/drivers/isdn/hisax/hisax_fcpcipnp.c
index 76043dedba5b..c0b4db2f8364 100644
--- a/drivers/isdn/hisax/hisax_fcpcipnp.c
+++ b/drivers/isdn/hisax/hisax_fcpcipnp.c
@@ -68,7 +68,7 @@ static struct pci_device_id fcpci_ids[] = {
68 68
69MODULE_DEVICE_TABLE(pci, fcpci_ids); 69MODULE_DEVICE_TABLE(pci, fcpci_ids);
70 70
71#ifdef __ISAPNP__ 71#ifdef CONFIG_PNP
72static struct pnp_device_id fcpnp_ids[] __devinitdata = { 72static struct pnp_device_id fcpnp_ids[] __devinitdata = {
73 { 73 {
74 .id = "AVM0900", 74 .id = "AVM0900",
@@ -914,7 +914,7 @@ static int __devinit fcpci_probe(struct pci_dev *pdev,
914 return retval; 914 return retval;
915} 915}
916 916
917#ifdef __ISAPNP__ 917#ifdef CONFIG_PNP
918static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) 918static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
919{ 919{
920 struct fritz_adapter *adapter; 920 struct fritz_adapter *adapter;
@@ -935,7 +935,7 @@ static int __devinit fcpnp_probe(struct pnp_dev *pdev, const struct pnp_device_i
935 pnp_disable_dev(pdev); 935 pnp_disable_dev(pdev);
936 retval = pnp_activate_dev(pdev); 936 retval = pnp_activate_dev(pdev);
937 if (retval < 0) { 937 if (retval < 0) {
938 printk(KERN_WARNING "%s: pnp_activate_dev(%s) ret(%d)\n", __FUNCTION__, 938 printk(KERN_WARNING "%s: pnp_activate_dev(%s) ret(%d)\n", __func__,
939 (char *)dev_id->driver_data, retval); 939 (char *)dev_id->driver_data, retval);
940 goto err_free; 940 goto err_free;
941 } 941 }
@@ -974,6 +974,8 @@ static struct pnp_driver fcpnp_driver = {
974 .remove = __devexit_p(fcpnp_remove), 974 .remove = __devexit_p(fcpnp_remove),
975 .id_table = fcpnp_ids, 975 .id_table = fcpnp_ids,
976}; 976};
977#else
978static struct pnp_driver fcpnp_driver;
977#endif 979#endif
978 980
979static void __devexit fcpci_remove(struct pci_dev *pdev) 981static void __devexit fcpci_remove(struct pci_dev *pdev)
@@ -1001,7 +1003,7 @@ static int __init hisax_fcpcipnp_init(void)
1001 retval = pci_register_driver(&fcpci_driver); 1003 retval = pci_register_driver(&fcpci_driver);
1002 if (retval) 1004 if (retval)
1003 return retval; 1005 return retval;
1004#ifdef __ISAPNP__ 1006#ifdef CONFIG_PNP
1005 retval = pnp_register_driver(&fcpnp_driver); 1007 retval = pnp_register_driver(&fcpnp_driver);
1006 if (retval < 0) { 1008 if (retval < 0) {
1007 pci_unregister_driver(&fcpci_driver); 1009 pci_unregister_driver(&fcpci_driver);
@@ -1013,7 +1015,7 @@ static int __init hisax_fcpcipnp_init(void)
1013 1015
1014static void __exit hisax_fcpcipnp_exit(void) 1016static void __exit hisax_fcpcipnp_exit(void)
1015{ 1017{
1016#ifdef __ISAPNP__ 1018#ifdef CONFIG_PNP
1017 pnp_unregister_driver(&fcpnp_driver); 1019 pnp_unregister_driver(&fcpnp_driver);
1018#endif 1020#endif
1019 pci_unregister_driver(&fcpci_driver); 1021 pci_unregister_driver(&fcpci_driver);
diff --git a/drivers/isdn/hisax/isurf.c b/drivers/isdn/hisax/isurf.c
index 55de06953540..ca4161798cdf 100644
--- a/drivers/isdn/hisax/isurf.c
+++ b/drivers/isdn/hisax/isurf.c
@@ -17,8 +17,6 @@
17#include "isdnl1.h" 17#include "isdnl1.h"
18#include <linux/isapnp.h> 18#include <linux/isapnp.h>
19 19
20extern const char *CardType[];
21
22static const char *ISurf_revision = "$Revision: 1.12.2.4 $"; 20static const char *ISurf_revision = "$Revision: 1.12.2.4 $";
23 21
24#define byteout(addr,val) outb(val,addr) 22#define byteout(addr,val) outb(val,addr)
@@ -251,22 +249,19 @@ setup_isurf(struct IsdnCard *card)
251 return(0); 249 return(0);
252 } 250 }
253#else 251#else
254 printk(KERN_WARNING "HiSax: %s port/mem not set\n", 252 printk(KERN_WARNING "HiSax: Siemens I-Surf port/mem not set\n");
255 CardType[card->typ]);
256 return (0); 253 return (0);
257#endif 254#endif
258 } 255 }
259 if (!request_region(cs->hw.isurf.reset, 1, "isurf isdn")) { 256 if (!request_region(cs->hw.isurf.reset, 1, "isurf isdn")) {
260 printk(KERN_WARNING 257 printk(KERN_WARNING
261 "HiSax: %s config port %x already in use\n", 258 "HiSax: Siemens I-Surf config port %x already in use\n",
262 CardType[card->typ],
263 cs->hw.isurf.reset); 259 cs->hw.isurf.reset);
264 return (0); 260 return (0);
265 } 261 }
266 if (!request_region(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE, "isurf iomem")) { 262 if (!request_region(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE, "isurf iomem")) {
267 printk(KERN_WARNING 263 printk(KERN_WARNING "HiSax: Siemens I-Surf memory region "
268 "HiSax: %s memory region %lx-%lx already in use\n", 264 "%lx-%lx already in use\n",
269 CardType[card->typ],
270 cs->hw.isurf.phymem, 265 cs->hw.isurf.phymem,
271 cs->hw.isurf.phymem + ISURF_IOMEM_SIZE); 266 cs->hw.isurf.phymem + ISURF_IOMEM_SIZE);
272 release_region(cs->hw.isurf.reset, 1); 267 release_region(cs->hw.isurf.reset, 1);
diff --git a/drivers/isdn/hisax/ix1_micro.c b/drivers/isdn/hisax/ix1_micro.c
index 252d79de5e5e..a92bf0d2cab2 100644
--- a/drivers/isdn/hisax/ix1_micro.c
+++ b/drivers/isdn/hisax/ix1_micro.c
@@ -24,7 +24,6 @@
24#include "hscx.h" 24#include "hscx.h"
25#include "isdnl1.h" 25#include "isdnl1.h"
26 26
27extern const char *CardType[];
28static const char *ix1_revision = "$Revision: 2.12.2.4 $"; 27static const char *ix1_revision = "$Revision: 2.12.2.4 $";
29 28
30#define byteout(addr,val) outb(val,addr) 29#define byteout(addr,val) outb(val,addr)
@@ -253,7 +252,7 @@ setup_ix1micro(struct IsdnCard *card)
253 err = pnp_activate_dev(pnp_d); 252 err = pnp_activate_dev(pnp_d);
254 if (err<0) { 253 if (err<0) {
255 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 254 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
256 __FUNCTION__, err); 255 __func__, err);
257 return(0); 256 return(0);
258 } 257 }
259 card->para[1] = pnp_port_start(pnp_d, 0); 258 card->para[1] = pnp_port_start(pnp_d, 0);
@@ -288,15 +287,15 @@ setup_ix1micro(struct IsdnCard *card)
288 if (cs->hw.ix1.cfg_reg) { 287 if (cs->hw.ix1.cfg_reg) {
289 if (!request_region(cs->hw.ix1.cfg_reg, 4, "ix1micro cfg")) { 288 if (!request_region(cs->hw.ix1.cfg_reg, 4, "ix1micro cfg")) {
290 printk(KERN_WARNING 289 printk(KERN_WARNING
291 "HiSax: %s config port %x-%x already in use\n", 290 "HiSax: ITK ix1-micro Rev.2 config port "
292 CardType[card->typ], 291 "%x-%x already in use\n",
293 cs->hw.ix1.cfg_reg, 292 cs->hw.ix1.cfg_reg,
294 cs->hw.ix1.cfg_reg + 4); 293 cs->hw.ix1.cfg_reg + 4);
295 return (0); 294 return (0);
296 } 295 }
297 } 296 }
298 printk(KERN_INFO "HiSax: %s config irq:%d io:0x%X\n", 297 printk(KERN_INFO "HiSax: ITK ix1-micro Rev.2 config irq:%d io:0x%X\n",
299 CardType[cs->typ], cs->irq, cs->hw.ix1.cfg_reg); 298 cs->irq, cs->hw.ix1.cfg_reg);
300 setup_isac(cs); 299 setup_isac(cs);
301 cs->readisac = &ReadISAC; 300 cs->readisac = &ReadISAC;
302 cs->writeisac = &WriteISAC; 301 cs->writeisac = &WriteISAC;
diff --git a/drivers/isdn/hisax/mic.c b/drivers/isdn/hisax/mic.c
index a81d175d9f64..253943029d25 100644
--- a/drivers/isdn/hisax/mic.c
+++ b/drivers/isdn/hisax/mic.c
@@ -16,8 +16,6 @@
16#include "hscx.h" 16#include "hscx.h"
17#include "isdnl1.h" 17#include "isdnl1.h"
18 18
19extern const char *CardType[];
20
21static const char *mic_revision = "$Revision: 1.12.2.4 $"; 19static const char *mic_revision = "$Revision: 1.12.2.4 $";
22 20
23#define byteout(addr,val) outb(val,addr) 21#define byteout(addr,val) outb(val,addr)
@@ -210,8 +208,7 @@ setup_mic(struct IsdnCard *card)
210 208
211 if (!request_region(cs->hw.mic.cfg_reg, bytecnt, "mic isdn")) { 209 if (!request_region(cs->hw.mic.cfg_reg, bytecnt, "mic isdn")) {
212 printk(KERN_WARNING 210 printk(KERN_WARNING
213 "HiSax: %s config port %x-%x already in use\n", 211 "HiSax: ith mic config port %x-%x already in use\n",
214 CardType[card->typ],
215 cs->hw.mic.cfg_reg, 212 cs->hw.mic.cfg_reg,
216 cs->hw.mic.cfg_reg + bytecnt); 213 cs->hw.mic.cfg_reg + bytecnt);
217 return (0); 214 return (0);
diff --git a/drivers/isdn/hisax/netjet.h b/drivers/isdn/hisax/netjet.h
index 4d89d3ea4173..68e504d4ebf9 100644
--- a/drivers/isdn/hisax/netjet.h
+++ b/drivers/isdn/hisax/netjet.h
@@ -12,8 +12,6 @@
12 * 12 *
13 */ 13 */
14 14
15extern const char *CardType[];
16
17#define byteout(addr,val) outb(val,addr) 15#define byteout(addr,val) outb(val,addr)
18#define bytein(addr) inb(addr) 16#define bytein(addr) inb(addr)
19 17
diff --git a/drivers/isdn/hisax/niccy.c b/drivers/isdn/hisax/niccy.c
index bd9921128aa8..ef00633e1d2a 100644
--- a/drivers/isdn/hisax/niccy.c
+++ b/drivers/isdn/hisax/niccy.c
@@ -21,7 +21,6 @@
21#include <linux/pci.h> 21#include <linux/pci.h>
22#include <linux/isapnp.h> 22#include <linux/isapnp.h>
23 23
24extern const char *CardType[];
25static const char *niccy_revision = "$Revision: 1.21.2.4 $"; 24static const char *niccy_revision = "$Revision: 1.21.2.4 $";
26 25
27#define byteout(addr,val) outb(val,addr) 26#define byteout(addr,val) outb(val,addr)
@@ -256,7 +255,7 @@ int __devinit setup_niccy(struct IsdnCard *card)
256 err = pnp_activate_dev(pnp_d); 255 err = pnp_activate_dev(pnp_d);
257 if (err < 0) { 256 if (err < 0) {
258 printk(KERN_WARNING "%s: pnp_activate_dev " 257 printk(KERN_WARNING "%s: pnp_activate_dev "
259 "ret(%d)\n", __FUNCTION__, err); 258 "ret(%d)\n", __func__, err);
260 return 0; 259 return 0;
261 } 260 }
262 card->para[1] = pnp_port_start(pnp_d, 0); 261 card->para[1] = pnp_port_start(pnp_d, 0);
@@ -284,14 +283,14 @@ int __devinit setup_niccy(struct IsdnCard *card)
284 cs->subtyp = NICCY_PNP; 283 cs->subtyp = NICCY_PNP;
285 cs->irq = card->para[0]; 284 cs->irq = card->para[0];
286 if (!request_region(cs->hw.niccy.isac, 2, "niccy data")) { 285 if (!request_region(cs->hw.niccy.isac, 2, "niccy data")) {
287 printk(KERN_WARNING "HiSax: %s data port %x-%x " 286 printk(KERN_WARNING "HiSax: NICCY data port %x-%x "
288 "already in use\n", CardType[card->typ], 287 "already in use\n",
289 cs->hw.niccy.isac, cs->hw.niccy.isac + 1); 288 cs->hw.niccy.isac, cs->hw.niccy.isac + 1);
290 return 0; 289 return 0;
291 } 290 }
292 if (!request_region(cs->hw.niccy.isac_ale, 2, "niccy addr")) { 291 if (!request_region(cs->hw.niccy.isac_ale, 2, "niccy addr")) {
293 printk(KERN_WARNING "HiSax: %s address port %x-%x " 292 printk(KERN_WARNING "HiSax: NICCY address port %x-%x "
294 "already in use\n", CardType[card->typ], 293 "already in use\n",
295 cs->hw.niccy.isac_ale, 294 cs->hw.niccy.isac_ale,
296 cs->hw.niccy.isac_ale + 1); 295 cs->hw.niccy.isac_ale + 1);
297 release_region(cs->hw.niccy.isac, 2); 296 release_region(cs->hw.niccy.isac, 2);
@@ -339,15 +338,13 @@ int __devinit setup_niccy(struct IsdnCard *card)
339 cs->hw.niccy.hscx_ale = pci_ioaddr + HSCX_PCI_ADDR; 338 cs->hw.niccy.hscx_ale = pci_ioaddr + HSCX_PCI_ADDR;
340 if (!request_region(cs->hw.niccy.isac, 4, "niccy")) { 339 if (!request_region(cs->hw.niccy.isac, 4, "niccy")) {
341 printk(KERN_WARNING 340 printk(KERN_WARNING
342 "HiSax: %s data port %x-%x already in use\n", 341 "HiSax: NICCY data port %x-%x already in use\n",
343 CardType[card->typ],
344 cs->hw.niccy.isac, cs->hw.niccy.isac + 4); 342 cs->hw.niccy.isac, cs->hw.niccy.isac + 4);
345 return 0; 343 return 0;
346 } 344 }
347 if (!request_region(cs->hw.niccy.cfg_reg, 0x40, "niccy pci")) { 345 if (!request_region(cs->hw.niccy.cfg_reg, 0x40, "niccy pci")) {
348 printk(KERN_WARNING 346 printk(KERN_WARNING
349 "HiSax: %s pci port %x-%x already in use\n", 347 "HiSax: NICCY pci port %x-%x already in use\n",
350 CardType[card->typ],
351 cs->hw.niccy.cfg_reg, 348 cs->hw.niccy.cfg_reg,
352 cs->hw.niccy.cfg_reg + 0x40); 349 cs->hw.niccy.cfg_reg + 0x40);
353 release_region(cs->hw.niccy.isac, 4); 350 release_region(cs->hw.niccy.isac, 4);
@@ -359,8 +356,8 @@ int __devinit setup_niccy(struct IsdnCard *card)
359 return 0; 356 return 0;
360#endif /* CONFIG_PCI_LEGACY */ 357#endif /* CONFIG_PCI_LEGACY */
361 } 358 }
362 printk(KERN_INFO "HiSax: %s %s config irq:%d data:0x%X ale:0x%X\n", 359 printk(KERN_INFO "HiSax: NICCY %s config irq:%d data:0x%X ale:0x%X\n",
363 CardType[cs->typ], (cs->subtyp == 1) ? "PnP" : "PCI", 360 (cs->subtyp == 1) ? "PnP" : "PCI",
364 cs->irq, cs->hw.niccy.isac, cs->hw.niccy.isac_ale); 361 cs->irq, cs->hw.niccy.isac, cs->hw.niccy.isac_ale);
365 setup_isac(cs); 362 setup_isac(cs);
366 cs->readisac = &ReadISAC; 363 cs->readisac = &ReadISAC;
diff --git a/drivers/isdn/hisax/nj_s.c b/drivers/isdn/hisax/nj_s.c
index a895dfed40e5..8d36ccc87d81 100644
--- a/drivers/isdn/hisax/nj_s.c
+++ b/drivers/isdn/hisax/nj_s.c
@@ -235,8 +235,7 @@ static int __devinit njs_cs_init_rest(struct IsdnCard *card,
235 cs->subtyp ? "TJ320" : "TJ300", cs->hw.njet.base, cs->irq); 235 cs->subtyp ? "TJ320" : "TJ300", cs->hw.njet.base, cs->irq);
236 if (!request_region(cs->hw.njet.base, bytecnt, "netjet-s isdn")) { 236 if (!request_region(cs->hw.njet.base, bytecnt, "netjet-s isdn")) {
237 printk(KERN_WARNING 237 printk(KERN_WARNING
238 "HiSax: %s config port %#lx-%#lx already in use\n", 238 "HiSax: NETjet-S config port %#lx-%#lx already in use\n",
239 CardType[card->typ],
240 cs->hw.njet.base, 239 cs->hw.njet.base,
241 cs->hw.njet.base + bytecnt); 240 cs->hw.njet.base + bytecnt);
242 return (0); 241 return (0);
diff --git a/drivers/isdn/hisax/nj_u.c b/drivers/isdn/hisax/nj_u.c
index f017d3816b1d..d306c946ffba 100644
--- a/drivers/isdn/hisax/nj_u.c
+++ b/drivers/isdn/hisax/nj_u.c
@@ -197,8 +197,8 @@ static int __devinit nju_cs_init_rest(struct IsdnCard *card,
197 cs->hw.njet.base, cs->irq); 197 cs->hw.njet.base, cs->irq);
198 if (!request_region(cs->hw.njet.base, bytecnt, "netspider-u isdn")) { 198 if (!request_region(cs->hw.njet.base, bytecnt, "netspider-u isdn")) {
199 printk(KERN_WARNING 199 printk(KERN_WARNING
200 "HiSax: %s config port %#lx-%#lx already in use\n", 200 "HiSax: NETspider-U config port %#lx-%#lx "
201 CardType[card->typ], 201 "already in use\n",
202 cs->hw.njet.base, 202 cs->hw.njet.base,
203 cs->hw.njet.base + bytecnt); 203 cs->hw.njet.base + bytecnt);
204 return (0); 204 return (0);
diff --git a/drivers/isdn/hisax/s0box.c b/drivers/isdn/hisax/s0box.c
index 150ef68b4ae2..16d00b555c8c 100644
--- a/drivers/isdn/hisax/s0box.c
+++ b/drivers/isdn/hisax/s0box.c
@@ -16,7 +16,6 @@
16#include "hscx.h" 16#include "hscx.h"
17#include "isdnl1.h" 17#include "isdnl1.h"
18 18
19extern const char *CardType[];
20static const char *s0box_revision = "$Revision: 2.6.2.4 $"; 19static const char *s0box_revision = "$Revision: 2.6.2.4 $";
21 20
22static inline void 21static inline void
@@ -231,19 +230,15 @@ setup_s0box(struct IsdnCard *card)
231 cs->hw.teles3.hscxfifo[1] = cs->hw.teles3.hscx[1] + 0x3e; 230 cs->hw.teles3.hscxfifo[1] = cs->hw.teles3.hscx[1] + 0x3e;
232 cs->irq = card->para[0]; 231 cs->irq = card->para[0];
233 if (!request_region(cs->hw.teles3.cfg_reg,8, "S0Box parallel I/O")) { 232 if (!request_region(cs->hw.teles3.cfg_reg,8, "S0Box parallel I/O")) {
234 printk(KERN_WARNING 233 printk(KERN_WARNING "HiSax: S0Box ports %x-%x already in use\n",
235 "HiSax: %s ports %x-%x already in use\n",
236 CardType[cs->typ],
237 cs->hw.teles3.cfg_reg, 234 cs->hw.teles3.cfg_reg,
238 cs->hw.teles3.cfg_reg + 7); 235 cs->hw.teles3.cfg_reg + 7);
239 return 0; 236 return 0;
240 } 237 }
241 printk(KERN_INFO 238 printk(KERN_INFO "HiSax: S0Box config irq:%d isac:0x%x cfg:0x%x\n",
242 "HiSax: %s config irq:%d isac:0x%x cfg:0x%x\n", 239 cs->irq,
243 CardType[cs->typ], cs->irq,
244 cs->hw.teles3.isac, cs->hw.teles3.cfg_reg); 240 cs->hw.teles3.isac, cs->hw.teles3.cfg_reg);
245 printk(KERN_INFO 241 printk(KERN_INFO "HiSax: hscx A:0x%x hscx B:0x%x\n",
246 "HiSax: hscx A:0x%x hscx B:0x%x\n",
247 cs->hw.teles3.hscx[0], cs->hw.teles3.hscx[1]); 242 cs->hw.teles3.hscx[0], cs->hw.teles3.hscx[1]);
248 setup_isac(cs); 243 setup_isac(cs);
249 cs->readisac = &ReadISAC; 244 cs->readisac = &ReadISAC;
diff --git a/drivers/isdn/hisax/saphir.c b/drivers/isdn/hisax/saphir.c
index c99b16690fb3..b34a81d655b8 100644
--- a/drivers/isdn/hisax/saphir.c
+++ b/drivers/isdn/hisax/saphir.c
@@ -18,7 +18,6 @@
18#include "hscx.h" 18#include "hscx.h"
19#include "isdnl1.h" 19#include "isdnl1.h"
20 20
21extern const char *CardType[];
22static char *saphir_rev = "$Revision: 1.10.2.4 $"; 21static char *saphir_rev = "$Revision: 1.10.2.4 $";
23 22
24#define byteout(addr,val) outb(val,addr) 23#define byteout(addr,val) outb(val,addr)
@@ -260,15 +259,14 @@ setup_saphir(struct IsdnCard *card)
260 cs->irq = card->para[0]; 259 cs->irq = card->para[0];
261 if (!request_region(cs->hw.saphir.cfg_reg, 6, "saphir")) { 260 if (!request_region(cs->hw.saphir.cfg_reg, 6, "saphir")) {
262 printk(KERN_WARNING 261 printk(KERN_WARNING
263 "HiSax: %s config port %x-%x already in use\n", 262 "HiSax: HST Saphir config port %x-%x already in use\n",
264 CardType[card->typ],
265 cs->hw.saphir.cfg_reg, 263 cs->hw.saphir.cfg_reg,
266 cs->hw.saphir.cfg_reg + 5); 264 cs->hw.saphir.cfg_reg + 5);
267 return (0); 265 return (0);
268 } 266 }
269 267
270 printk(KERN_INFO "HiSax: %s config irq:%d io:0x%X\n", 268 printk(KERN_INFO "HiSax: HST Saphir config irq:%d io:0x%X\n",
271 CardType[cs->typ], cs->irq, cs->hw.saphir.cfg_reg); 269 cs->irq, cs->hw.saphir.cfg_reg);
272 270
273 setup_isac(cs); 271 setup_isac(cs);
274 cs->hw.saphir.timer.function = (void *) SaphirWatchDog; 272 cs->hw.saphir.timer.function = (void *) SaphirWatchDog;
diff --git a/drivers/isdn/hisax/sedlbauer.c b/drivers/isdn/hisax/sedlbauer.c
index 95425f3d2220..a10dfa82c734 100644
--- a/drivers/isdn/hisax/sedlbauer.c
+++ b/drivers/isdn/hisax/sedlbauer.c
@@ -555,7 +555,7 @@ setup_sedlbauer_isapnp(struct IsdnCard *card, int *bytecnt)
555 err = pnp_activate_dev(pnp_d); 555 err = pnp_activate_dev(pnp_d);
556 if (err<0) { 556 if (err<0) {
557 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 557 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
558 __FUNCTION__, err); 558 __func__, err);
559 return(0); 559 return(0);
560 } 560 }
561 card->para[1] = pnp_port_start(pnp_d, 0); 561 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/sportster.c b/drivers/isdn/hisax/sportster.c
index 02209500b3b7..0a53759adfa4 100644
--- a/drivers/isdn/hisax/sportster.c
+++ b/drivers/isdn/hisax/sportster.c
@@ -18,7 +18,6 @@
18#include "hscx.h" 18#include "hscx.h"
19#include "isdnl1.h" 19#include "isdnl1.h"
20 20
21extern const char *CardType[];
22static const char *sportster_revision = "$Revision: 1.16.2.4 $"; 21static const char *sportster_revision = "$Revision: 1.16.2.4 $";
23 22
24#define byteout(addr,val) outb(val,addr) 23#define byteout(addr,val) outb(val,addr)
@@ -192,9 +191,9 @@ get_io_range(struct IsdnCardState *cs)
192 for (i=0;i<64;i++) { 191 for (i=0;i<64;i++) {
193 adr = cs->hw.spt.cfg_reg + i *1024; 192 adr = cs->hw.spt.cfg_reg + i *1024;
194 if (!request_region(adr, 8, "sportster")) { 193 if (!request_region(adr, 8, "sportster")) {
195 printk(KERN_WARNING 194 printk(KERN_WARNING "HiSax: USR Sportster config port "
196 "HiSax: %s config port %x-%x already in use\n", 195 "%x-%x already in use\n",
197 CardType[cs->typ], adr, adr + 8); 196 adr, adr + 8);
198 break; 197 break;
199 } 198 }
200 } 199 }
@@ -247,8 +246,8 @@ setup_sportster(struct IsdnCard *card)
247 printk(KERN_WARNING "Sportster: wrong IRQ\n"); 246 printk(KERN_WARNING "Sportster: wrong IRQ\n");
248 return(0); 247 return(0);
249 } 248 }
250 printk(KERN_INFO "HiSax: %s config irq:%d cfg:0x%X\n", 249 printk(KERN_INFO "HiSax: USR Sportster config irq:%d cfg:0x%X\n",
251 CardType[cs->typ], cs->irq, cs->hw.spt.cfg_reg); 250 cs->irq, cs->hw.spt.cfg_reg);
252 setup_isac(cs); 251 setup_isac(cs);
253 cs->readisac = &ReadISAC; 252 cs->readisac = &ReadISAC;
254 cs->writeisac = &WriteISAC; 253 cs->writeisac = &WriteISAC;
diff --git a/drivers/isdn/hisax/st5481.h b/drivers/isdn/hisax/st5481.h
index 04416bad611d..2044e7173ab4 100644
--- a/drivers/isdn/hisax/st5481.h
+++ b/drivers/isdn/hisax/st5481.h
@@ -218,13 +218,13 @@ enum {
218#define L1_EVENT_COUNT (EV_TIMER3 + 1) 218#define L1_EVENT_COUNT (EV_TIMER3 + 1)
219 219
220#define ERR(format, arg...) \ 220#define ERR(format, arg...) \
221printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) 221printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
222 222
223#define WARN(format, arg...) \ 223#define WARN(format, arg...) \
224printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) 224printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
225 225
226#define INFO(format, arg...) \ 226#define INFO(format, arg...) \
227printk(KERN_INFO "%s:%s: " format "\n" , __FILE__, __FUNCTION__ , ## arg) 227printk(KERN_INFO "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
228 228
229#include "isdnhdlc.h" 229#include "isdnhdlc.h"
230#include "fsm.h" 230#include "fsm.h"
@@ -406,7 +406,7 @@ struct st5481_adapter {
406 406
407/* 407/*
408 * Submit an URB with error reporting. This is a macro so 408 * Submit an URB with error reporting. This is a macro so
409 * the __FUNCTION__ returns the caller function name. 409 * the __func__ returns the caller function name.
410 */ 410 */
411#define SUBMIT_URB(urb, mem_flags) \ 411#define SUBMIT_URB(urb, mem_flags) \
412({ \ 412({ \
@@ -470,7 +470,7 @@ extern int st5481_debug;
470#ifdef CONFIG_HISAX_DEBUG 470#ifdef CONFIG_HISAX_DEBUG
471 471
472#define DBG_ISO_PACKET(level,urb) \ 472#define DBG_ISO_PACKET(level,urb) \
473 if (level & __debug_variable) dump_iso_packet(__FUNCTION__,urb) 473 if (level & __debug_variable) dump_iso_packet(__func__,urb)
474 474
475static void __attribute__((unused)) 475static void __attribute__((unused))
476dump_iso_packet(const char *name, struct urb *urb) 476dump_iso_packet(const char *name, struct urb *urb)
diff --git a/drivers/isdn/hisax/st5481_usb.c b/drivers/isdn/hisax/st5481_usb.c
index 4ada66b8b679..427a8b0520f5 100644
--- a/drivers/isdn/hisax/st5481_usb.c
+++ b/drivers/isdn/hisax/st5481_usb.c
@@ -342,7 +342,7 @@ void st5481_release_usb(struct st5481_adapter *adapter)
342 usb_kill_urb(intr->urb); 342 usb_kill_urb(intr->urb);
343 kfree(intr->urb->transfer_buffer); 343 kfree(intr->urb->transfer_buffer);
344 usb_free_urb(intr->urb); 344 usb_free_urb(intr->urb);
345 ctrl->urb = NULL; 345 intr->urb = NULL;
346} 346}
347 347
348/* 348/*
diff --git a/drivers/isdn/hisax/teleint.c b/drivers/isdn/hisax/teleint.c
index 0909662b7458..b0ce4ae45cbf 100644
--- a/drivers/isdn/hisax/teleint.c
+++ b/drivers/isdn/hisax/teleint.c
@@ -16,8 +16,6 @@
16#include "hfc_2bs0.h" 16#include "hfc_2bs0.h"
17#include "isdnl1.h" 17#include "isdnl1.h"
18 18
19extern const char *CardType[];
20
21static const char *TeleInt_revision = "$Revision: 1.16.2.5 $"; 19static const char *TeleInt_revision = "$Revision: 1.16.2.5 $";
22 20
23#define byteout(addr,val) outb(val,addr) 21#define byteout(addr,val) outb(val,addr)
@@ -286,8 +284,7 @@ setup_TeleInt(struct IsdnCard *card)
286 init_timer(&cs->hw.hfc.timer); 284 init_timer(&cs->hw.hfc.timer);
287 if (!request_region(cs->hw.hfc.addr, 2, "TeleInt isdn")) { 285 if (!request_region(cs->hw.hfc.addr, 2, "TeleInt isdn")) {
288 printk(KERN_WARNING 286 printk(KERN_WARNING
289 "HiSax: %s config port %x-%x already in use\n", 287 "HiSax: TeleInt config port %x-%x already in use\n",
290 CardType[card->typ],
291 cs->hw.hfc.addr, 288 cs->hw.hfc.addr,
292 cs->hw.hfc.addr + 2); 289 cs->hw.hfc.addr + 2);
293 return (0); 290 return (0);
diff --git a/drivers/isdn/hisax/teles3.c b/drivers/isdn/hisax/teles3.c
index 6a5e379e0774..5dc9f1a43629 100644
--- a/drivers/isdn/hisax/teles3.c
+++ b/drivers/isdn/hisax/teles3.c
@@ -301,7 +301,7 @@ setup_teles3(struct IsdnCard *card)
301 err = pnp_activate_dev(pnp_d); 301 err = pnp_activate_dev(pnp_d);
302 if (err<0) { 302 if (err<0) {
303 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 303 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
304 __FUNCTION__, err); 304 __func__, err);
305 return(0); 305 return(0);
306 } 306 }
307 card->para[3] = pnp_port_start(pnp_d, 2); 307 card->para[3] = pnp_port_start(pnp_d, 2);
diff --git a/drivers/isdn/hisax/telespci.c b/drivers/isdn/hisax/telespci.c
index 4393003ae162..28b08de4673d 100644
--- a/drivers/isdn/hisax/telespci.c
+++ b/drivers/isdn/hisax/telespci.c
@@ -19,7 +19,6 @@
19#include "isdnl1.h" 19#include "isdnl1.h"
20#include <linux/pci.h> 20#include <linux/pci.h>
21 21
22extern const char *CardType[];
23static const char *telespci_revision = "$Revision: 2.23.2.3 $"; 22static const char *telespci_revision = "$Revision: 2.23.2.3 $";
24 23
25#define ZORAN_PO_RQ_PEN 0x02000000 24#define ZORAN_PO_RQ_PEN 0x02000000
@@ -329,8 +328,8 @@ setup_telespci(struct IsdnCard *card)
329 /* writel(0x00800000, cs->hw.teles0.membase + 0x200); */ 328 /* writel(0x00800000, cs->hw.teles0.membase + 0x200); */
330 329
331 printk(KERN_INFO 330 printk(KERN_INFO
332 "HiSax: %s config irq:%d mem:%p\n", 331 "HiSax: Teles PCI config irq:%d mem:%p\n",
333 CardType[cs->typ], cs->irq, 332 cs->irq,
334 cs->hw.teles0.membase); 333 cs->hw.teles0.membase);
335 334
336 setup_isac(cs); 335 setup_isac(cs);
diff --git a/drivers/isdn/hisax/w6692.c b/drivers/isdn/hisax/w6692.c
index 39129b94f8be..bb1c8dd1a230 100644
--- a/drivers/isdn/hisax/w6692.c
+++ b/drivers/isdn/hisax/w6692.c
@@ -38,8 +38,6 @@ static const PCI_ENTRY id_list[] =
38#define W6692_DYNALINK 1 38#define W6692_DYNALINK 1
39#define W6692_USR 2 39#define W6692_USR 2
40 40
41extern const char *CardType[];
42
43static const char *w6692_revision = "$Revision: 1.18.2.4 $"; 41static const char *w6692_revision = "$Revision: 1.18.2.4 $";
44 42
45#define DBUSY_TIMER_VALUE 80 43#define DBUSY_TIMER_VALUE 80