aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/capi/capi.c34
-rw-r--r--drivers/isdn/capi/capidrv.c28
-rw-r--r--drivers/isdn/capi/capifs.c5
-rw-r--r--drivers/isdn/capi/capilib.c4
-rw-r--r--drivers/isdn/capi/capiutil.c2
-rw-r--r--drivers/isdn/capi/kcapi.c22
-rw-r--r--drivers/isdn/capi/kcapi.h2
-rw-r--r--drivers/isdn/hardware/avm/b1.c10
-rw-r--r--drivers/isdn/hardware/avm/b1dma.c10
-rw-r--r--drivers/isdn/hardware/avm/b1isa.c4
-rw-r--r--drivers/isdn/hardware/avm/b1pci.c4
-rw-r--r--drivers/isdn/hardware/avm/b1pcmcia.c4
-rw-r--r--drivers/isdn/hardware/avm/c4.c12
-rw-r--r--drivers/isdn/hardware/avm/t1isa.c4
-rw-r--r--drivers/isdn/hardware/avm/t1pci.c4
-rw-r--r--drivers/isdn/hardware/eicon/divasmain.c2
-rw-r--r--drivers/isdn/hardware/eicon/message.c12
-rw-r--r--drivers/isdn/hisax/asuscom.c2
-rw-r--r--drivers/isdn/hisax/avm_pci.c2
-rw-r--r--drivers/isdn/hisax/diva.c2
-rw-r--r--drivers/isdn/hisax/elsa.c2
-rw-r--r--drivers/isdn/hisax/hfc_sx.c2
-rw-r--r--drivers/isdn/hisax/hfc_usb.c6
-rw-r--r--drivers/isdn/hisax/hfcscard.c2
-rw-r--r--drivers/isdn/hisax/hisax_debug.h6
-rw-r--r--drivers/isdn/hisax/hisax_fcpcipnp.c12
-rw-r--r--drivers/isdn/hisax/ix1_micro.c2
-rw-r--r--drivers/isdn/hisax/niccy.c2
-rw-r--r--drivers/isdn/hisax/sedlbauer.c2
-rw-r--r--drivers/isdn/hisax/st5481.h10
-rw-r--r--drivers/isdn/hisax/st5481_usb.c2
-rw-r--r--drivers/isdn/hisax/teles3.c2
-rw-r--r--drivers/isdn/i4l/isdn_common.c2
-rw-r--r--drivers/isdn/i4l/isdn_net.h6
-rw-r--r--drivers/isdn/i4l/isdn_ppp.c32
-rw-r--r--drivers/isdn/i4l/isdn_tty.c6
36 files changed, 134 insertions, 131 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index 23ae66c76d47..24c6b7ca62be 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -350,7 +350,7 @@ static void capincci_free(struct capidev *cdev, u32 ncci)
350 if (ncci == 0xffffffff || np->ncci == ncci) { 350 if (ncci == 0xffffffff || np->ncci == ncci) {
351 *pp = (*pp)->next; 351 *pp = (*pp)->next;
352#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE 352#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
353 if ((mp = np->minorp) != 0) { 353 if ((mp = np->minorp) != NULL) {
354#if defined(CONFIG_ISDN_CAPI_CAPIFS) || defined(CONFIG_ISDN_CAPI_CAPIFS_MODULE) 354#if defined(CONFIG_ISDN_CAPI_CAPIFS) || defined(CONFIG_ISDN_CAPI_CAPIFS_MODULE)
355 capifs_free_ncci(mp->minor); 355 capifs_free_ncci(mp->minor);
356#endif 356#endif
@@ -366,7 +366,7 @@ static void capincci_free(struct capidev *cdev, u32 ncci)
366 } 366 }
367#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */ 367#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */
368 kfree(np); 368 kfree(np);
369 if (*pp == 0) return; 369 if (*pp == NULL) return;
370 } else { 370 } else {
371 pp = &(*pp)->next; 371 pp = &(*pp)->next;
372 } 372 }
@@ -483,7 +483,7 @@ static int handle_recv_skb(struct capiminor *mp, struct sk_buff *skb)
483#endif 483#endif
484 goto bad; 484 goto bad;
485 } 485 }
486 if ((nskb = gen_data_b3_resp_for(mp, skb)) == 0) { 486 if ((nskb = gen_data_b3_resp_for(mp, skb)) == NULL) {
487 printk(KERN_ERR "capi: gen_data_b3_resp failed\n"); 487 printk(KERN_ERR "capi: gen_data_b3_resp failed\n");
488 goto bad; 488 goto bad;
489 } 489 }
@@ -512,7 +512,7 @@ bad:
512static void handle_minor_recv(struct capiminor *mp) 512static void handle_minor_recv(struct capiminor *mp)
513{ 513{
514 struct sk_buff *skb; 514 struct sk_buff *skb;
515 while ((skb = skb_dequeue(&mp->inqueue)) != 0) { 515 while ((skb = skb_dequeue(&mp->inqueue)) != NULL) {
516 unsigned int len = skb->len; 516 unsigned int len = skb->len;
517 mp->inbytes -= len; 517 mp->inbytes -= len;
518 if (handle_recv_skb(mp, skb) < 0) { 518 if (handle_recv_skb(mp, skb) < 0) {
@@ -538,7 +538,7 @@ static int handle_minor_send(struct capiminor *mp)
538 return 0; 538 return 0;
539 } 539 }
540 540
541 while ((skb = skb_dequeue(&mp->outqueue)) != 0) { 541 while ((skb = skb_dequeue(&mp->outqueue)) != NULL) {
542 datahandle = mp->datahandle; 542 datahandle = mp->datahandle;
543 len = (u16)skb->len; 543 len = (u16)skb->len;
544 skb_push(skb, CAPI_DATA_B3_REQ_LEN); 544 skb_push(skb, CAPI_DATA_B3_REQ_LEN);
@@ -689,19 +689,19 @@ capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
689 if (!cdev->ap.applid) 689 if (!cdev->ap.applid)
690 return -ENODEV; 690 return -ENODEV;
691 691
692 if ((skb = skb_dequeue(&cdev->recvqueue)) == 0) { 692 if ((skb = skb_dequeue(&cdev->recvqueue)) == NULL) {
693 693
694 if (file->f_flags & O_NONBLOCK) 694 if (file->f_flags & O_NONBLOCK)
695 return -EAGAIN; 695 return -EAGAIN;
696 696
697 for (;;) { 697 for (;;) {
698 interruptible_sleep_on(&cdev->recvwait); 698 interruptible_sleep_on(&cdev->recvwait);
699 if ((skb = skb_dequeue(&cdev->recvqueue)) != 0) 699 if ((skb = skb_dequeue(&cdev->recvqueue)) != NULL)
700 break; 700 break;
701 if (signal_pending(current)) 701 if (signal_pending(current))
702 break; 702 break;
703 } 703 }
704 if (skb == 0) 704 if (skb == NULL)
705 return -ERESTARTNOHAND; 705 return -ERESTARTNOHAND;
706 } 706 }
707 if (skb->len > count) { 707 if (skb->len > count) {
@@ -940,12 +940,12 @@ capi_ioctl(struct inode *inode, struct file *file,
940 return -EFAULT; 940 return -EFAULT;
941 941
942 mutex_lock(&cdev->ncci_list_mtx); 942 mutex_lock(&cdev->ncci_list_mtx);
943 if ((nccip = capincci_find(cdev, (u32) ncci)) == 0) { 943 if ((nccip = capincci_find(cdev, (u32) ncci)) == NULL) {
944 mutex_unlock(&cdev->ncci_list_mtx); 944 mutex_unlock(&cdev->ncci_list_mtx);
945 return 0; 945 return 0;
946 } 946 }
947#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE 947#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
948 if ((mp = nccip->minorp) != 0) { 948 if ((mp = nccip->minorp) != NULL) {
949 count += atomic_read(&mp->ttyopencount); 949 count += atomic_read(&mp->ttyopencount);
950 } 950 }
951#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */ 951#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */
@@ -966,7 +966,7 @@ capi_ioctl(struct inode *inode, struct file *file,
966 return -EFAULT; 966 return -EFAULT;
967 mutex_lock(&cdev->ncci_list_mtx); 967 mutex_lock(&cdev->ncci_list_mtx);
968 nccip = capincci_find(cdev, (u32) ncci); 968 nccip = capincci_find(cdev, (u32) ncci);
969 if (!nccip || (mp = nccip->minorp) == 0) { 969 if (!nccip || (mp = nccip->minorp) == NULL) {
970 mutex_unlock(&cdev->ncci_list_mtx); 970 mutex_unlock(&cdev->ncci_list_mtx);
971 return -ESRCH; 971 return -ESRCH;
972 } 972 }
@@ -986,7 +986,7 @@ capi_open(struct inode *inode, struct file *file)
986 if (file->private_data) 986 if (file->private_data)
987 return -EEXIST; 987 return -EEXIST;
988 988
989 if ((file->private_data = capidev_alloc()) == 0) 989 if ((file->private_data = capidev_alloc()) == NULL)
990 return -ENOMEM; 990 return -ENOMEM;
991 991
992 return nonseekable_open(inode, file); 992 return nonseekable_open(inode, file);
@@ -1023,9 +1023,9 @@ static int capinc_tty_open(struct tty_struct * tty, struct file * file)
1023 struct capiminor *mp; 1023 struct capiminor *mp;
1024 unsigned long flags; 1024 unsigned long flags;
1025 1025
1026 if ((mp = capiminor_find(iminor(file->f_path.dentry->d_inode))) == 0) 1026 if ((mp = capiminor_find(iminor(file->f_path.dentry->d_inode))) == NULL)
1027 return -ENXIO; 1027 return -ENXIO;
1028 if (mp->nccip == 0) 1028 if (mp->nccip == NULL)
1029 return -ENXIO; 1029 return -ENXIO;
1030 1030
1031 tty->driver_data = (void *)mp; 1031 tty->driver_data = (void *)mp;
@@ -1058,7 +1058,7 @@ static void capinc_tty_close(struct tty_struct * tty, struct file * file)
1058#ifdef _DEBUG_REFCOUNT 1058#ifdef _DEBUG_REFCOUNT
1059 printk(KERN_DEBUG "capinc_tty_close ocount=%d\n", atomic_read(&mp->ttyopencount)); 1059 printk(KERN_DEBUG "capinc_tty_close ocount=%d\n", atomic_read(&mp->ttyopencount));
1060#endif 1060#endif
1061 if (mp->nccip == 0) 1061 if (mp->nccip == NULL)
1062 capiminor_free(mp); 1062 capiminor_free(mp);
1063 } 1063 }
1064 1064
@@ -1526,9 +1526,9 @@ static int __init capi_init(void)
1526 char *compileinfo; 1526 char *compileinfo;
1527 int major_ret; 1527 int major_ret;
1528 1528
1529 if ((p = strchr(revision, ':')) != 0 && p[1]) { 1529 if ((p = strchr(revision, ':')) != NULL && p[1]) {
1530 strlcpy(rev, p + 2, sizeof(rev)); 1530 strlcpy(rev, p + 2, sizeof(rev));
1531 if ((p = strchr(rev, '$')) != 0 && p > rev) 1531 if ((p = strchr(rev, '$')) != NULL && p > rev)
1532 *(p-1) = 0; 1532 *(p-1) = 0;
1533 } else 1533 } else
1534 strcpy(rev, "1.0"); 1534 strcpy(rev, "1.0");
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index cb42b690b45e..d5b4cc357a3c 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -335,7 +335,7 @@ static capidrv_plci *new_plci(capidrv_contr * card, int chan)
335 335
336 plcip = kzalloc(sizeof(capidrv_plci), GFP_ATOMIC); 336 plcip = kzalloc(sizeof(capidrv_plci), GFP_ATOMIC);
337 337
338 if (plcip == 0) 338 if (plcip == NULL)
339 return NULL; 339 return NULL;
340 340
341 plcip->state = ST_PLCI_NONE; 341 plcip->state = ST_PLCI_NONE;
@@ -404,7 +404,7 @@ static inline capidrv_ncci *new_ncci(capidrv_contr * card,
404 404
405 nccip = kzalloc(sizeof(capidrv_ncci), GFP_ATOMIC); 405 nccip = kzalloc(sizeof(capidrv_ncci), GFP_ATOMIC);
406 406
407 if (nccip == 0) 407 if (nccip == NULL)
408 return NULL; 408 return NULL;
409 409
410 nccip->ncci = ncci; 410 nccip->ncci = ncci;
@@ -426,7 +426,7 @@ static inline capidrv_ncci *find_ncci(capidrv_contr * card, u32 ncci)
426 capidrv_plci *plcip; 426 capidrv_plci *plcip;
427 capidrv_ncci *p; 427 capidrv_ncci *p;
428 428
429 if ((plcip = find_plci_by_ncci(card, ncci)) == 0) 429 if ((plcip = find_plci_by_ncci(card, ncci)) == NULL)
430 return NULL; 430 return NULL;
431 431
432 for (p = plcip->ncci_list; p; p = p->next) 432 for (p = plcip->ncci_list; p; p = p->next)
@@ -441,7 +441,7 @@ static inline capidrv_ncci *find_ncci_by_msgid(capidrv_contr * card,
441 capidrv_plci *plcip; 441 capidrv_plci *plcip;
442 capidrv_ncci *p; 442 capidrv_ncci *p;
443 443
444 if ((plcip = find_plci_by_ncci(card, ncci)) == 0) 444 if ((plcip = find_plci_by_ncci(card, ncci)) == NULL)
445 return NULL; 445 return NULL;
446 446
447 for (p = plcip->ncci_list; p; p = p->next) 447 for (p = plcip->ncci_list; p; p = p->next)
@@ -755,7 +755,7 @@ static inline int new_bchan(capidrv_contr * card)
755{ 755{
756 int i; 756 int i;
757 for (i = 0; i < card->nbchan; i++) { 757 for (i = 0; i < card->nbchan; i++) {
758 if (card->bchans[i].plcip == 0) { 758 if (card->bchans[i].plcip == NULL) {
759 card->bchans[i].disconnecting = 0; 759 card->bchans[i].disconnecting = 0;
760 return i; 760 return i;
761 } 761 }
@@ -877,7 +877,7 @@ static void handle_incoming_call(capidrv_contr * card, _cmsg * cmsg)
877 return; 877 return;
878 } 878 }
879 bchan = &card->bchans[chan]; 879 bchan = &card->bchans[chan];
880 if ((plcip = new_plci(card, chan)) == 0) { 880 if ((plcip = new_plci(card, chan)) == NULL) {
881 printk(KERN_ERR "capidrv-%d: incoming call: no memory, sorry.\n", card->contrnr); 881 printk(KERN_ERR "capidrv-%d: incoming call: no memory, sorry.\n", card->contrnr);
882 return; 882 return;
883 } 883 }
@@ -1388,12 +1388,12 @@ static void capidrv_recv_message(struct capi20_appl *ap, struct sk_buff *skb)
1388 _cdebbuf *cdb = capi_cmsg2str(&s_cmsg); 1388 _cdebbuf *cdb = capi_cmsg2str(&s_cmsg);
1389 1389
1390 if (cdb) { 1390 if (cdb) {
1391 printk(KERN_DEBUG "%s: applid=%d %s\n", __FUNCTION__, 1391 printk(KERN_DEBUG "%s: applid=%d %s\n", __func__,
1392 ap->applid, cdb->buf); 1392 ap->applid, cdb->buf);
1393 cdebbuf_free(cdb); 1393 cdebbuf_free(cdb);
1394 } else 1394 } else
1395 printk(KERN_DEBUG "%s: applid=%d %s not traced\n", 1395 printk(KERN_DEBUG "%s: applid=%d %s not traced\n",
1396 __FUNCTION__, ap->applid, 1396 __func__, ap->applid,
1397 capi_cmd2str(s_cmsg.Command, s_cmsg.Subcommand)); 1397 capi_cmd2str(s_cmsg.Command, s_cmsg.Subcommand));
1398 } 1398 }
1399 if (s_cmsg.Command == CAPI_DATA_B3 1399 if (s_cmsg.Command == CAPI_DATA_B3
@@ -1661,7 +1661,7 @@ static int capidrv_command(isdn_ctrl * c, capidrv_contr * card)
1661 NULL, /* Useruserdata */ 1661 NULL, /* Useruserdata */
1662 NULL /* Facilitydataarray */ 1662 NULL /* Facilitydataarray */
1663 ); 1663 );
1664 if ((plcip = new_plci(card, (c->arg % card->nbchan))) == 0) { 1664 if ((plcip = new_plci(card, (c->arg % card->nbchan))) == NULL) {
1665 cmd.command = ISDN_STAT_DHUP; 1665 cmd.command = ISDN_STAT_DHUP;
1666 cmd.driver = card->myid; 1666 cmd.driver = card->myid;
1667 cmd.arg = (c->arg % card->nbchan); 1667 cmd.arg = (c->arg % card->nbchan);
@@ -1966,7 +1966,7 @@ static void enable_dchannel_trace(capidrv_contr *card)
1966 card->name, errcode); 1966 card->name, errcode);
1967 return; 1967 return;
1968 } 1968 }
1969 if (strstr(manufacturer, "AVM") == 0) { 1969 if (strstr(manufacturer, "AVM") == NULL) {
1970 printk(KERN_ERR "%s: not from AVM, no d-channel trace possible (%s)\n", 1970 printk(KERN_ERR "%s: not from AVM, no d-channel trace possible (%s)\n",
1971 card->name, manufacturer); 1971 card->name, manufacturer);
1972 return; 1972 return;
@@ -2291,10 +2291,10 @@ static int __init capidrv_init(void)
2291 u32 ncontr, contr; 2291 u32 ncontr, contr;
2292 u16 errcode; 2292 u16 errcode;
2293 2293
2294 if ((p = strchr(revision, ':')) != 0 && p[1]) { 2294 if ((p = strchr(revision, ':')) != NULL && p[1]) {
2295 strncpy(rev, p + 2, sizeof(rev)); 2295 strncpy(rev, p + 2, sizeof(rev));
2296 rev[sizeof(rev)-1] = 0; 2296 rev[sizeof(rev)-1] = 0;
2297 if ((p = strchr(rev, '$')) != 0 && p > rev) 2297 if ((p = strchr(rev, '$')) != NULL && p > rev)
2298 *(p-1) = 0; 2298 *(p-1) = 0;
2299 } else 2299 } else
2300 strcpy(rev, "1.0"); 2300 strcpy(rev, "1.0");
@@ -2335,10 +2335,10 @@ static void __exit capidrv_exit(void)
2335 char rev[32]; 2335 char rev[32];
2336 char *p; 2336 char *p;
2337 2337
2338 if ((p = strchr(revision, ':')) != 0) { 2338 if ((p = strchr(revision, ':')) != NULL) {
2339 strncpy(rev, p + 1, sizeof(rev)); 2339 strncpy(rev, p + 1, sizeof(rev));
2340 rev[sizeof(rev)-1] = 0; 2340 rev[sizeof(rev)-1] = 0;
2341 if ((p = strchr(rev, '$')) != 0) 2341 if ((p = strchr(rev, '$')) != NULL)
2342 *p = 0; 2342 *p = 0;
2343 } else { 2343 } else {
2344 strcpy(rev, " ??? "); 2344 strcpy(rev, " ??? ");
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c
index 6d7c47ec0367..550e80f390a6 100644
--- a/drivers/isdn/capi/capifs.c
+++ b/drivers/isdn/capi/capifs.c
@@ -69,6 +69,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data)
69 } else if (sscanf(this_char, "mode=%o%c", &n, &dummy) == 1) 69 } else if (sscanf(this_char, "mode=%o%c", &n, &dummy) == 1)
70 mode = n & ~S_IFMT; 70 mode = n & ~S_IFMT;
71 else { 71 else {
72 kfree(new_opt);
72 printk("capifs: called with bogus options\n"); 73 printk("capifs: called with bogus options\n");
73 return -EINVAL; 74 return -EINVAL;
74 } 75 }
@@ -189,9 +190,9 @@ static int __init capifs_init(void)
189 char *p; 190 char *p;
190 int err; 191 int err;
191 192
192 if ((p = strchr(revision, ':')) != 0 && p[1]) { 193 if ((p = strchr(revision, ':')) != NULL && p[1]) {
193 strlcpy(rev, p + 2, sizeof(rev)); 194 strlcpy(rev, p + 2, sizeof(rev));
194 if ((p = strchr(rev, '$')) != 0 && p > rev) 195 if ((p = strchr(rev, '$')) != NULL && p > rev)
195 *(p-1) = 0; 196 *(p-1) = 0;
196 } else 197 } else
197 strcpy(rev, "1.0"); 198 strcpy(rev, "1.0");
diff --git a/drivers/isdn/capi/capilib.c b/drivers/isdn/capi/capilib.c
index 68409d971e73..fcaa1241ee77 100644
--- a/drivers/isdn/capi/capilib.c
+++ b/drivers/isdn/capi/capilib.c
@@ -4,7 +4,7 @@
4#include <linux/isdn/capilli.h> 4#include <linux/isdn/capilli.h>
5 5
6#define DBG(format, arg...) do { \ 6#define DBG(format, arg...) do { \
7printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ 7printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
8} while (0) 8} while (0)
9 9
10struct capilib_msgidqueue { 10struct capilib_msgidqueue {
@@ -44,7 +44,7 @@ static inline void mq_init(struct capilib_ncci * np)
44static inline int mq_enqueue(struct capilib_ncci * np, u16 msgid) 44static inline int mq_enqueue(struct capilib_ncci * np, u16 msgid)
45{ 45{
46 struct capilib_msgidqueue *mq; 46 struct capilib_msgidqueue *mq;
47 if ((mq = np->msgidfree) == 0) 47 if ((mq = np->msgidfree) == NULL)
48 return 0; 48 return 0;
49 np->msgidfree = mq->next; 49 np->msgidfree = mq->next;
50 mq->msgid = msgid; 50 mq->msgid = msgid;
diff --git a/drivers/isdn/capi/capiutil.c b/drivers/isdn/capi/capiutil.c
index 22379b94e88f..ebef4ce1b00c 100644
--- a/drivers/isdn/capi/capiutil.c
+++ b/drivers/isdn/capi/capiutil.c
@@ -450,7 +450,7 @@ static void pars_2_message(_cmsg * cmsg)
450 cmsg->l += 4; 450 cmsg->l += 4;
451 break; 451 break;
452 case _CSTRUCT: 452 case _CSTRUCT:
453 if (*(u8 **) OFF == 0) { 453 if (*(u8 **) OFF == NULL) {
454 *(cmsg->m + cmsg->l) = '\0'; 454 *(cmsg->m + cmsg->l) = '\0';
455 cmsg->l++; 455 cmsg->l++;
456 } else if (**(_cstruct *) OFF != 0xff) { 456 } else if (**(_cstruct *) OFF != 0xff) {
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c
index f55531869313..75726ea0fbbd 100644
--- a/drivers/isdn/capi/kcapi.c
+++ b/drivers/isdn/capi/kcapi.c
@@ -10,7 +10,7 @@
10 * 10 *
11 */ 11 */
12 12
13#define CONFIG_AVMB1_COMPAT 13#define AVMB1_COMPAT
14 14
15#include "kcapi.h" 15#include "kcapi.h"
16#include <linux/module.h> 16#include <linux/module.h>
@@ -29,7 +29,7 @@
29#include <asm/uaccess.h> 29#include <asm/uaccess.h>
30#include <linux/isdn/capicmd.h> 30#include <linux/isdn/capicmd.h>
31#include <linux/isdn/capiutil.h> 31#include <linux/isdn/capiutil.h>
32#ifdef CONFIG_AVMB1_COMPAT 32#ifdef AVMB1_COMPAT
33#include <linux/b1lli.h> 33#include <linux/b1lli.h>
34#endif 34#endif
35#include <linux/mutex.h> 35#include <linux/mutex.h>
@@ -154,7 +154,7 @@ static void register_appl(struct capi_ctr *card, u16 applid, capi_register_param
154 if (card) 154 if (card)
155 card->register_appl(card, applid, rparam); 155 card->register_appl(card, applid, rparam);
156 else 156 else
157 printk(KERN_WARNING "%s: cannot get card resources\n", __FUNCTION__); 157 printk(KERN_WARNING "%s: cannot get card resources\n", __func__);
158} 158}
159 159
160 160
@@ -178,7 +178,7 @@ static void notify_up(u32 contr)
178 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr); 178 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
179 } 179 }
180 if (!card) { 180 if (!card) {
181 printk(KERN_WARNING "%s: invalid contr %d\n", __FUNCTION__, contr); 181 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr);
182 return; 182 return;
183 } 183 }
184 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) { 184 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
@@ -740,7 +740,7 @@ u16 capi20_get_profile(u32 contr, struct capi_profile *profp)
740 740
741EXPORT_SYMBOL(capi20_get_profile); 741EXPORT_SYMBOL(capi20_get_profile);
742 742
743#ifdef CONFIG_AVMB1_COMPAT 743#ifdef AVMB1_COMPAT
744static int old_capi_manufacturer(unsigned int cmd, void __user *data) 744static int old_capi_manufacturer(unsigned int cmd, void __user *data)
745{ 745{
746 avmb1_loadandconfigdef ldef; 746 avmb1_loadandconfigdef ldef;
@@ -826,7 +826,7 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data)
826 card = capi_ctr_get(card); 826 card = capi_ctr_get(card);
827 if (!card) 827 if (!card)
828 return -ESRCH; 828 return -ESRCH;
829 if (card->load_firmware == 0) { 829 if (card->load_firmware == NULL) {
830 printk(KERN_DEBUG "kcapi: load: no load function\n"); 830 printk(KERN_DEBUG "kcapi: load: no load function\n");
831 return -ESRCH; 831 return -ESRCH;
832 } 832 }
@@ -835,7 +835,7 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data)
835 printk(KERN_DEBUG "kcapi: load: invalid parameter: length of t4file is %d ?\n", ldef.t4file.len); 835 printk(KERN_DEBUG "kcapi: load: invalid parameter: length of t4file is %d ?\n", ldef.t4file.len);
836 return -EINVAL; 836 return -EINVAL;
837 } 837 }
838 if (ldef.t4file.data == 0) { 838 if (ldef.t4file.data == NULL) {
839 printk(KERN_DEBUG "kcapi: load: invalid parameter: dataptr is 0\n"); 839 printk(KERN_DEBUG "kcapi: load: invalid parameter: dataptr is 0\n");
840 return -EINVAL; 840 return -EINVAL;
841 } 841 }
@@ -904,7 +904,7 @@ int capi20_manufacturer(unsigned int cmd, void __user *data)
904 struct capi_ctr *card; 904 struct capi_ctr *card;
905 905
906 switch (cmd) { 906 switch (cmd) {
907#ifdef CONFIG_AVMB1_COMPAT 907#ifdef AVMB1_COMPAT
908 case AVMB1_LOAD: 908 case AVMB1_LOAD:
909 case AVMB1_LOAD_AND_CONFIG: 909 case AVMB1_LOAD_AND_CONFIG:
910 case AVMB1_RESETCARD: 910 case AVMB1_RESETCARD:
@@ -951,7 +951,7 @@ int capi20_manufacturer(unsigned int cmd, void __user *data)
951 if (strcmp(driver->name, cdef.driver) == 0) 951 if (strcmp(driver->name, cdef.driver) == 0)
952 break; 952 break;
953 } 953 }
954 if (driver == 0) { 954 if (driver == NULL) {
955 printk(KERN_ERR "kcapi: driver \"%s\" not loaded.\n", 955 printk(KERN_ERR "kcapi: driver \"%s\" not loaded.\n",
956 cdef.driver); 956 cdef.driver);
957 return -ESRCH; 957 return -ESRCH;
@@ -1004,9 +1004,9 @@ static int __init kcapi_init(void)
1004 return ret; 1004 return ret;
1005 kcapi_proc_init(); 1005 kcapi_proc_init();
1006 1006
1007 if ((p = strchr(revision, ':')) != 0 && p[1]) { 1007 if ((p = strchr(revision, ':')) != NULL && p[1]) {
1008 strlcpy(rev, p + 2, sizeof(rev)); 1008 strlcpy(rev, p + 2, sizeof(rev));
1009 if ((p = strchr(rev, '$')) != 0 && p > rev) 1009 if ((p = strchr(rev, '$')) != NULL && p > rev)
1010 *(p-1) = 0; 1010 *(p-1) = 0;
1011 } else 1011 } else
1012 strcpy(rev, "1.0"); 1012 strcpy(rev, "1.0");
diff --git a/drivers/isdn/capi/kcapi.h b/drivers/isdn/capi/kcapi.h
index 1cb2c40f9921..244711f7f838 100644
--- a/drivers/isdn/capi/kcapi.h
+++ b/drivers/isdn/capi/kcapi.h
@@ -17,7 +17,7 @@
17 17
18#ifdef KCAPI_DEBUG 18#ifdef KCAPI_DEBUG
19#define DBG(format, arg...) do { \ 19#define DBG(format, arg...) do { \
20printk(KERN_DEBUG "%s: " format "\n" , __FUNCTION__ , ## arg); \ 20printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
21} while (0) 21} while (0)
22#else 22#else
23#define DBG(format, arg...) /* */ 23#define DBG(format, arg...) /* */
diff --git a/drivers/isdn/hardware/avm/b1.c b/drivers/isdn/hardware/avm/b1.c
index 4484a6417235..abf05ec31760 100644
--- a/drivers/isdn/hardware/avm/b1.c
+++ b/drivers/isdn/hardware/avm/b1.c
@@ -661,11 +661,11 @@ int b1ctl_read_proc(char *page, char **start, off_t off,
661 len += sprintf(page+len, "%-16s %s\n", "type", s); 661 len += sprintf(page+len, "%-16s %s\n", "type", s);
662 if (card->cardtype == avm_t1isa) 662 if (card->cardtype == avm_t1isa)
663 len += sprintf(page+len, "%-16s %d\n", "cardnr", card->cardnr); 663 len += sprintf(page+len, "%-16s %d\n", "cardnr", card->cardnr);
664 if ((s = cinfo->version[VER_DRIVER]) != 0) 664 if ((s = cinfo->version[VER_DRIVER]) != NULL)
665 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s); 665 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s);
666 if ((s = cinfo->version[VER_CARDTYPE]) != 0) 666 if ((s = cinfo->version[VER_CARDTYPE]) != NULL)
667 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s); 667 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s);
668 if ((s = cinfo->version[VER_SERIAL]) != 0) 668 if ((s = cinfo->version[VER_SERIAL]) != NULL)
669 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s); 669 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s);
670 670
671 if (card->cardtype != avm_m1) { 671 if (card->cardtype != avm_m1) {
@@ -788,9 +788,9 @@ static int __init b1_init(void)
788 char *p; 788 char *p;
789 char rev[32]; 789 char rev[32];
790 790
791 if ((p = strchr(revision, ':')) != 0 && p[1]) { 791 if ((p = strchr(revision, ':')) != NULL && p[1]) {
792 strlcpy(rev, p + 2, 32); 792 strlcpy(rev, p + 2, 32);
793 if ((p = strchr(rev, '$')) != 0 && p > rev) 793 if ((p = strchr(rev, '$')) != NULL && p > rev)
794 *(p-1) = 0; 794 *(p-1) = 0;
795 } else 795 } else
796 strcpy(rev, "1.0"); 796 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/b1dma.c b/drivers/isdn/hardware/avm/b1dma.c
index 669f6f67449c..da34b98e3de7 100644
--- a/drivers/isdn/hardware/avm/b1dma.c
+++ b/drivers/isdn/hardware/avm/b1dma.c
@@ -883,11 +883,11 @@ int b1dmactl_read_proc(char *page, char **start, off_t off,
883 default: s = "???"; break; 883 default: s = "???"; break;
884 } 884 }
885 len += sprintf(page+len, "%-16s %s\n", "type", s); 885 len += sprintf(page+len, "%-16s %s\n", "type", s);
886 if ((s = cinfo->version[VER_DRIVER]) != 0) 886 if ((s = cinfo->version[VER_DRIVER]) != NULL)
887 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s); 887 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s);
888 if ((s = cinfo->version[VER_CARDTYPE]) != 0) 888 if ((s = cinfo->version[VER_CARDTYPE]) != NULL)
889 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s); 889 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s);
890 if ((s = cinfo->version[VER_SERIAL]) != 0) 890 if ((s = cinfo->version[VER_SERIAL]) != NULL)
891 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s); 891 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s);
892 892
893 if (card->cardtype != avm_m1) { 893 if (card->cardtype != avm_m1) {
@@ -970,9 +970,9 @@ static int __init b1dma_init(void)
970 char *p; 970 char *p;
971 char rev[32]; 971 char rev[32];
972 972
973 if ((p = strchr(revision, ':')) != 0 && p[1]) { 973 if ((p = strchr(revision, ':')) != NULL && p[1]) {
974 strlcpy(rev, p + 2, sizeof(rev)); 974 strlcpy(rev, p + 2, sizeof(rev));
975 if ((p = strchr(rev, '$')) != 0 && p > rev) 975 if ((p = strchr(rev, '$')) != NULL && p > rev)
976 *(p-1) = 0; 976 *(p-1) = 0;
977 } else 977 } else
978 strcpy(rev, "1.0"); 978 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/b1isa.c b/drivers/isdn/hardware/avm/b1isa.c
index 80fb488848b8..1e288eeb5e2a 100644
--- a/drivers/isdn/hardware/avm/b1isa.c
+++ b/drivers/isdn/hardware/avm/b1isa.c
@@ -203,9 +203,9 @@ static int __init b1isa_init(void)
203 char rev[32]; 203 char rev[32];
204 int i; 204 int i;
205 205
206 if ((p = strchr(revision, ':')) != 0 && p[1]) { 206 if ((p = strchr(revision, ':')) != NULL && p[1]) {
207 strlcpy(rev, p + 2, 32); 207 strlcpy(rev, p + 2, 32);
208 if ((p = strchr(rev, '$')) != 0 && p > rev) 208 if ((p = strchr(rev, '$')) != NULL && p > rev)
209 *(p-1) = 0; 209 *(p-1) = 0;
210 } else 210 } else
211 strcpy(rev, "1.0"); 211 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/b1pci.c b/drivers/isdn/hardware/avm/b1pci.c
index 90e2e6643d19..5b314a2c4049 100644
--- a/drivers/isdn/hardware/avm/b1pci.c
+++ b/drivers/isdn/hardware/avm/b1pci.c
@@ -382,9 +382,9 @@ static int __init b1pci_init(void)
382 char rev[32]; 382 char rev[32];
383 int err; 383 int err;
384 384
385 if ((p = strchr(revision, ':')) != 0 && p[1]) { 385 if ((p = strchr(revision, ':')) != NULL && p[1]) {
386 strlcpy(rev, p + 2, 32); 386 strlcpy(rev, p + 2, 32);
387 if ((p = strchr(rev, '$')) != 0 && p > rev) 387 if ((p = strchr(rev, '$')) != NULL && p > rev)
388 *(p-1) = 0; 388 *(p-1) = 0;
389 } else 389 } else
390 strcpy(rev, "1.0"); 390 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/b1pcmcia.c b/drivers/isdn/hardware/avm/b1pcmcia.c
index e479c0aef38d..7740403b40e1 100644
--- a/drivers/isdn/hardware/avm/b1pcmcia.c
+++ b/drivers/isdn/hardware/avm/b1pcmcia.c
@@ -201,9 +201,9 @@ static int __init b1pcmcia_init(void)
201 char *p; 201 char *p;
202 char rev[32]; 202 char rev[32];
203 203
204 if ((p = strchr(revision, ':')) != 0 && p[1]) { 204 if ((p = strchr(revision, ':')) != NULL && p[1]) {
205 strlcpy(rev, p + 2, 32); 205 strlcpy(rev, p + 2, 32);
206 if ((p = strchr(rev, '$')) != 0 && p > rev) 206 if ((p = strchr(rev, '$')) != NULL && p > rev)
207 *(p-1) = 0; 207 *(p-1) = 0;
208 } else 208 } else
209 strcpy(rev, "1.0"); 209 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/c4.c b/drivers/isdn/hardware/avm/c4.c
index 4bbbbe688077..9df1d3f66c87 100644
--- a/drivers/isdn/hardware/avm/c4.c
+++ b/drivers/isdn/hardware/avm/c4.c
@@ -1088,11 +1088,11 @@ static int c4_read_proc(char *page, char **start, off_t off,
1088 default: s = "???"; break; 1088 default: s = "???"; break;
1089 } 1089 }
1090 len += sprintf(page+len, "%-16s %s\n", "type", s); 1090 len += sprintf(page+len, "%-16s %s\n", "type", s);
1091 if ((s = cinfo->version[VER_DRIVER]) != 0) 1091 if ((s = cinfo->version[VER_DRIVER]) != NULL)
1092 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s); 1092 len += sprintf(page+len, "%-16s %s\n", "ver_driver", s);
1093 if ((s = cinfo->version[VER_CARDTYPE]) != 0) 1093 if ((s = cinfo->version[VER_CARDTYPE]) != NULL)
1094 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s); 1094 len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s);
1095 if ((s = cinfo->version[VER_SERIAL]) != 0) 1095 if ((s = cinfo->version[VER_SERIAL]) != NULL)
1096 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s); 1096 len += sprintf(page+len, "%-16s %s\n", "ver_serial", s);
1097 1097
1098 if (card->cardtype != avm_m1) { 1098 if (card->cardtype != avm_m1) {
@@ -1167,7 +1167,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev,
1167 } 1167 }
1168 1168
1169 card->mbase = ioremap(card->membase, 128); 1169 card->mbase = ioremap(card->membase, 128);
1170 if (card->mbase == 0) { 1170 if (card->mbase == NULL) {
1171 printk(KERN_NOTICE "c4: can't remap memory at 0x%lx\n", 1171 printk(KERN_NOTICE "c4: can't remap memory at 0x%lx\n",
1172 card->membase); 1172 card->membase);
1173 retval = -EIO; 1173 retval = -EIO;
@@ -1291,9 +1291,9 @@ static int __init c4_init(void)
1291 char rev[32]; 1291 char rev[32];
1292 int err; 1292 int err;
1293 1293
1294 if ((p = strchr(revision, ':')) != 0 && p[1]) { 1294 if ((p = strchr(revision, ':')) != NULL && p[1]) {
1295 strlcpy(rev, p + 2, 32); 1295 strlcpy(rev, p + 2, 32);
1296 if ((p = strchr(rev, '$')) != 0 && p > rev) 1296 if ((p = strchr(rev, '$')) != NULL && p > rev)
1297 *(p-1) = 0; 1297 *(p-1) = 0;
1298 } else 1298 } else
1299 strcpy(rev, "1.0"); 1299 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/t1isa.c b/drivers/isdn/hardware/avm/t1isa.c
index 6130724e46e7..e7724493738c 100644
--- a/drivers/isdn/hardware/avm/t1isa.c
+++ b/drivers/isdn/hardware/avm/t1isa.c
@@ -551,9 +551,9 @@ static int __init t1isa_init(void)
551 char *p; 551 char *p;
552 int i; 552 int i;
553 553
554 if ((p = strchr(revision, ':')) != 0 && p[1]) { 554 if ((p = strchr(revision, ':')) != NULL && p[1]) {
555 strlcpy(rev, p + 2, 32); 555 strlcpy(rev, p + 2, 32);
556 if ((p = strchr(rev, '$')) != 0 && p > rev) 556 if ((p = strchr(rev, '$')) != NULL && p > rev)
557 *(p-1) = 0; 557 *(p-1) = 0;
558 } else 558 } else
559 strcpy(rev, "1.0"); 559 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/avm/t1pci.c b/drivers/isdn/hardware/avm/t1pci.c
index d1e253c94db4..e6d298d75146 100644
--- a/drivers/isdn/hardware/avm/t1pci.c
+++ b/drivers/isdn/hardware/avm/t1pci.c
@@ -233,9 +233,9 @@ static int __init t1pci_init(void)
233 char rev[32]; 233 char rev[32];
234 int err; 234 int err;
235 235
236 if ((p = strchr(revision, ':')) != 0 && p[1]) { 236 if ((p = strchr(revision, ':')) != NULL && p[1]) {
237 strlcpy(rev, p + 2, 32); 237 strlcpy(rev, p + 2, 32);
238 if ((p = strchr(rev, '$')) != 0 && p > rev) 238 if ((p = strchr(rev, '$')) != NULL && p > rev)
239 *(p-1) = 0; 239 *(p-1) = 0;
240 } else 240 } else
241 strcpy(rev, "1.0"); 241 strcpy(rev, "1.0");
diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c
index 6d39f9360766..5fcbdccd7a53 100644
--- a/drivers/isdn/hardware/eicon/divasmain.c
+++ b/drivers/isdn/hardware/eicon/divasmain.c
@@ -393,7 +393,7 @@ void diva_free_dma_map(void *hdev, struct _diva_dma_map_entry *pmap)
393 dma_addr_t dma_handle; 393 dma_addr_t dma_handle;
394 void *addr_handle; 394 void *addr_handle;
395 395
396 for (i = 0; (pmap != 0); i++) { 396 for (i = 0; (pmap != NULL); i++) {
397 diva_get_dma_map_entry(pmap, i, &cpu_addr, &phys_addr); 397 diva_get_dma_map_entry(pmap, i, &cpu_addr, &phys_addr);
398 if (!cpu_addr) { 398 if (!cpu_addr) {
399 break; 399 break;
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c
index 1ff98e7eb794..599fed88222d 100644
--- a/drivers/isdn/hardware/eicon/message.c
+++ b/drivers/isdn/hardware/eicon/message.c
@@ -742,7 +742,7 @@ static void start_internal_command (dword Id, PLCI *plci, t_std_internal_comma
742 else 742 else
743 { 743 {
744 i = 1; 744 i = 1;
745 while (plci->internal_command_queue[i] != 0) 745 while (plci->internal_command_queue[i] != NULL)
746 i++; 746 i++;
747 plci->internal_command_queue[i] = command_function; 747 plci->internal_command_queue[i] = command_function;
748 } 748 }
@@ -758,7 +758,7 @@ static void next_internal_command (dword Id, PLCI *plci)
758 758
759 plci->internal_command = 0; 759 plci->internal_command = 0;
760 plci->internal_command_queue[0] = NULL; 760 plci->internal_command_queue[0] = NULL;
761 while (plci->internal_command_queue[1] != 0) 761 while (plci->internal_command_queue[1] != NULL)
762 { 762 {
763 for (i = 0; i < MAX_INTERNAL_COMMAND_LEVELS - 1; i++) 763 for (i = 0; i < MAX_INTERNAL_COMMAND_LEVELS - 1; i++)
764 plci->internal_command_queue[i] = plci->internal_command_queue[i+1]; 764 plci->internal_command_queue[i] = plci->internal_command_queue[i+1];
@@ -9119,7 +9119,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho
9119 dbug(1,dprintf("AdvSigPlci=0x%x",a->AdvSignalPLCI)); 9119 dbug(1,dprintf("AdvSigPlci=0x%x",a->AdvSignalPLCI));
9120 return 0x2001; /* codec in use by another application */ 9120 return 0x2001; /* codec in use by another application */
9121 } 9121 }
9122 if(plci!=0) 9122 if(plci!=NULL)
9123 { 9123 {
9124 a->AdvSignalPLCI = plci; 9124 a->AdvSignalPLCI = plci;
9125 plci->tel=ADV_VOICE; 9125 plci->tel=ADV_VOICE;
@@ -9144,7 +9144,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho
9144 } 9144 }
9145 /* indicate D-ch connect if */ 9145 /* indicate D-ch connect if */
9146 } /* codec is connected OK */ 9146 } /* codec is connected OK */
9147 if(plci!=0) 9147 if(plci!=NULL)
9148 { 9148 {
9149 a->AdvSignalPLCI = plci; 9149 a->AdvSignalPLCI = plci;
9150 plci->tel=ADV_VOICE; 9150 plci->tel=ADV_VOICE;
@@ -9170,7 +9170,7 @@ word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, byte ho
9170 { 9170 {
9171 if(hook_listen) return 0x300B; /* Facility not supported */ 9171 if(hook_listen) return 0x300B; /* Facility not supported */
9172 /* no hook with SCOM */ 9172 /* no hook with SCOM */
9173 if(plci!=0) plci->tel = CODEC; 9173 if(plci!=NULL) plci->tel = CODEC;
9174 dbug(1,dprintf("S/SCOM codec")); 9174 dbug(1,dprintf("S/SCOM codec"));
9175 /* first time we use the scom-s codec we must shut down the internal */ 9175 /* first time we use the scom-s codec we must shut down the internal */
9176 /* handset application of the card. This can be done by an assign with */ 9176 /* handset application of the card. This can be done by an assign with */
@@ -14604,7 +14604,7 @@ static void channel_xmit_extended_xon (PLCI * plci) {
14604 int max_ch = ARRAY_SIZE(a->ch_flow_control); 14604 int max_ch = ARRAY_SIZE(a->ch_flow_control);
14605 int i, one_requested = 0; 14605 int i, one_requested = 0;
14606 14606
14607 if ((!plci) || (!plci->Id) || ((a = plci->adapter) == 0)) { 14607 if ((!plci) || (!plci->Id) || ((a = plci->adapter) == NULL)) {
14608 return; 14608 return;
14609 } 14609 }
14610 14610
diff --git a/drivers/isdn/hisax/asuscom.c b/drivers/isdn/hisax/asuscom.c
index b96f3184c2e5..1f879b500d83 100644
--- a/drivers/isdn/hisax/asuscom.c
+++ b/drivers/isdn/hisax/asuscom.c
@@ -344,7 +344,7 @@ setup_asuscom(struct IsdnCard *card)
344 err = pnp_activate_dev(pnp_d); 344 err = pnp_activate_dev(pnp_d);
345 if (err<0) { 345 if (err<0) {
346 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 346 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
347 __FUNCTION__, err); 347 __func__, err);
348 return(0); 348 return(0);
349 } 349 }
350 card->para[1] = pnp_port_start(pnp_d, 0); 350 card->para[1] = pnp_port_start(pnp_d, 0);
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/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 2c3691fda300..aa29d1cf16af 100644
--- a/drivers/isdn/hisax/elsa.c
+++ b/drivers/isdn/hisax/elsa.c
@@ -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/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c
index f4a213877e35..d92e8d6c2ae2 100644
--- a/drivers/isdn/hisax/hfc_sx.c
+++ b/drivers/isdn/hisax/hfc_sx.c
@@ -1417,7 +1417,7 @@ setup_hfcsx(struct IsdnCard *card)
1417 err = pnp_activate_dev(pnp_d); 1417 err = pnp_activate_dev(pnp_d);
1418 if (err<0) { 1418 if (err<0) {
1419 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 1419 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
1420 __FUNCTION__, err); 1420 __func__, err);
1421 return(0); 1421 return(0);
1422 } 1422 }
1423 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_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/ix1_micro.c b/drivers/isdn/hisax/ix1_micro.c
index 2d18d4f1e57e..a92bf0d2cab2 100644
--- a/drivers/isdn/hisax/ix1_micro.c
+++ b/drivers/isdn/hisax/ix1_micro.c
@@ -252,7 +252,7 @@ setup_ix1micro(struct IsdnCard *card)
252 err = pnp_activate_dev(pnp_d); 252 err = pnp_activate_dev(pnp_d);
253 if (err<0) { 253 if (err<0) {
254 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n", 254 printk(KERN_WARNING "%s: pnp_activate_dev ret(%d)\n",
255 __FUNCTION__, err); 255 __func__, err);
256 return(0); 256 return(0);
257 } 257 }
258 card->para[1] = pnp_port_start(pnp_d, 0); 258 card->para[1] = pnp_port_start(pnp_d, 0);
diff --git a/drivers/isdn/hisax/niccy.c b/drivers/isdn/hisax/niccy.c
index 421b8e6763d7..ef00633e1d2a 100644
--- a/drivers/isdn/hisax/niccy.c
+++ b/drivers/isdn/hisax/niccy.c
@@ -255,7 +255,7 @@ int __devinit setup_niccy(struct IsdnCard *card)
255 err = pnp_activate_dev(pnp_d); 255 err = pnp_activate_dev(pnp_d);
256 if (err < 0) { 256 if (err < 0) {
257 printk(KERN_WARNING "%s: pnp_activate_dev " 257 printk(KERN_WARNING "%s: pnp_activate_dev "
258 "ret(%d)\n", __FUNCTION__, err); 258 "ret(%d)\n", __func__, err);
259 return 0; 259 return 0;
260 } 260 }
261 card->para[1] = pnp_port_start(pnp_d, 0); 261 card->para[1] = pnp_port_start(pnp_d, 0);
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/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/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/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
index d4ad6992f776..0f3c66de69bc 100644
--- a/drivers/isdn/i4l/isdn_common.c
+++ b/drivers/isdn/i4l/isdn_common.c
@@ -1924,7 +1924,7 @@ isdn_free_channel(int di, int ch, int usage)
1924 1924
1925 if ((di < 0) || (ch < 0)) { 1925 if ((di < 0) || (ch < 0)) {
1926 printk(KERN_WARNING "%s: called with invalid drv(%d) or channel(%d)\n", 1926 printk(KERN_WARNING "%s: called with invalid drv(%d) or channel(%d)\n",
1927 __FUNCTION__, di, ch); 1927 __func__, di, ch);
1928 return; 1928 return;
1929 } 1929 }
1930 for (i = 0; i < ISDN_MAX_CHANNELS; i++) 1930 for (i = 0; i < ISDN_MAX_CHANNELS; i++)
diff --git a/drivers/isdn/i4l/isdn_net.h b/drivers/isdn/i4l/isdn_net.h
index bc2f0dd962ea..be4949715d55 100644
--- a/drivers/isdn/i4l/isdn_net.h
+++ b/drivers/isdn/i4l/isdn_net.h
@@ -108,7 +108,7 @@ static __inline__ void isdn_net_add_to_bundle(isdn_net_dev *nd, isdn_net_local *
108 108
109 lp = nd->queue; 109 lp = nd->queue;
110// printk(KERN_DEBUG "%s: lp:%s(%p) nlp:%s(%p) last(%p)\n", 110// printk(KERN_DEBUG "%s: lp:%s(%p) nlp:%s(%p) last(%p)\n",
111// __FUNCTION__, lp->name, lp, nlp->name, nlp, lp->last); 111// __func__, lp->name, lp, nlp->name, nlp, lp->last);
112 nlp->last = lp->last; 112 nlp->last = lp->last;
113 lp->last->next = nlp; 113 lp->last->next = nlp;
114 lp->last = nlp; 114 lp->last = nlp;
@@ -129,7 +129,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
129 master_lp = (isdn_net_local *) lp->master->priv; 129 master_lp = (isdn_net_local *) lp->master->priv;
130 130
131// printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n", 131// printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n",
132// __FUNCTION__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue); 132// __func__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue);
133 spin_lock_irqsave(&master_lp->netdev->queue_lock, flags); 133 spin_lock_irqsave(&master_lp->netdev->queue_lock, flags);
134 lp->last->next = lp->next; 134 lp->last->next = lp->next;
135 lp->next->last = lp->last; 135 lp->next->last = lp->last;
@@ -141,7 +141,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
141 } 141 }
142 lp->next = lp->last = lp; /* (re)set own pointers */ 142 lp->next = lp->last = lp; /* (re)set own pointers */
143// printk(KERN_DEBUG "%s: mndq(%p)\n", 143// printk(KERN_DEBUG "%s: mndq(%p)\n",
144// __FUNCTION__, master_lp->netdev->queue); 144// __func__, master_lp->netdev->queue);
145 spin_unlock_irqrestore(&master_lp->netdev->queue_lock, flags); 145 spin_unlock_irqrestore(&master_lp->netdev->queue_lock, flags);
146} 146}
147 147
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c
index 9f5fe372f83d..127cfdad68e7 100644
--- a/drivers/isdn/i4l/isdn_ppp.c
+++ b/drivers/isdn/i4l/isdn_ppp.c
@@ -110,7 +110,7 @@ isdn_ppp_free(isdn_net_local * lp)
110 110
111 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { 111 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
112 printk(KERN_ERR "%s: ppp_slot(%d) out of range\n", 112 printk(KERN_ERR "%s: ppp_slot(%d) out of range\n",
113 __FUNCTION__, lp->ppp_slot); 113 __func__, lp->ppp_slot);
114 return 0; 114 return 0;
115 } 115 }
116 116
@@ -127,7 +127,7 @@ isdn_ppp_free(isdn_net_local * lp)
127#endif /* CONFIG_ISDN_MPP */ 127#endif /* CONFIG_ISDN_MPP */
128 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { 128 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
129 printk(KERN_ERR "%s: ppp_slot(%d) now invalid\n", 129 printk(KERN_ERR "%s: ppp_slot(%d) now invalid\n",
130 __FUNCTION__, lp->ppp_slot); 130 __func__, lp->ppp_slot);
131 return 0; 131 return 0;
132 } 132 }
133 is = ippp_table[lp->ppp_slot]; 133 is = ippp_table[lp->ppp_slot];
@@ -226,7 +226,7 @@ isdn_ppp_wakeup_daemon(isdn_net_local * lp)
226{ 226{
227 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { 227 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
228 printk(KERN_ERR "%s: ppp_slot(%d) out of range\n", 228 printk(KERN_ERR "%s: ppp_slot(%d) out of range\n",
229 __FUNCTION__, lp->ppp_slot); 229 __func__, lp->ppp_slot);
230 return; 230 return;
231 } 231 }
232 ippp_table[lp->ppp_slot]->state = IPPP_OPEN | IPPP_CONNECT | IPPP_NOBLOCK; 232 ippp_table[lp->ppp_slot]->state = IPPP_OPEN | IPPP_CONNECT | IPPP_NOBLOCK;
@@ -245,7 +245,7 @@ isdn_ppp_closewait(int slot)
245 245
246 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 246 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
247 printk(KERN_ERR "%s: slot(%d) out of range\n", 247 printk(KERN_ERR "%s: slot(%d) out of range\n",
248 __FUNCTION__, slot); 248 __func__, slot);
249 return 0; 249 return 0;
250 } 250 }
251 is = ippp_table[slot]; 251 is = ippp_table[slot];
@@ -343,7 +343,7 @@ isdn_ppp_release(int min, struct file *file)
343 is = file->private_data; 343 is = file->private_data;
344 344
345 if (!is) { 345 if (!is) {
346 printk(KERN_ERR "%s: no file->private_data\n", __FUNCTION__); 346 printk(KERN_ERR "%s: no file->private_data\n", __func__);
347 return; 347 return;
348 } 348 }
349 if (is->debug & 0x1) 349 if (is->debug & 0x1)
@@ -353,7 +353,7 @@ isdn_ppp_release(int min, struct file *file)
353 isdn_net_dev *p = is->lp->netdev; 353 isdn_net_dev *p = is->lp->netdev;
354 354
355 if (!p) { 355 if (!p) {
356 printk(KERN_ERR "%s: no lp->netdev\n", __FUNCTION__); 356 printk(KERN_ERR "%s: no lp->netdev\n", __func__);
357 return; 357 return;
358 } 358 }
359 is->state &= ~IPPP_CONNECT; /* -> effect: no call of wakeup */ 359 is->state &= ~IPPP_CONNECT; /* -> effect: no call of wakeup */
@@ -1080,7 +1080,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff
1080 printk(KERN_DEBUG "isdn_ppp: VJC_UNCOMP\n"); 1080 printk(KERN_DEBUG "isdn_ppp: VJC_UNCOMP\n");
1081 if (net_dev->local->ppp_slot < 0) { 1081 if (net_dev->local->ppp_slot < 0) {
1082 printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n", 1082 printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n",
1083 __FUNCTION__, net_dev->local->ppp_slot); 1083 __func__, net_dev->local->ppp_slot);
1084 goto drop_packet; 1084 goto drop_packet;
1085 } 1085 }
1086 if (slhc_remember(ippp_table[net_dev->local->ppp_slot]->slcomp, skb->data, skb->len) <= 0) { 1086 if (slhc_remember(ippp_table[net_dev->local->ppp_slot]->slcomp, skb->data, skb->len) <= 0) {
@@ -1107,7 +1107,7 @@ isdn_ppp_push_higher(isdn_net_dev * net_dev, isdn_net_local * lp, struct sk_buff
1107 skb_old->len); 1107 skb_old->len);
1108 if (net_dev->local->ppp_slot < 0) { 1108 if (net_dev->local->ppp_slot < 0) {
1109 printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n", 1109 printk(KERN_ERR "%s: net_dev->local->ppp_slot(%d) out of range\n",
1110 __FUNCTION__, net_dev->local->ppp_slot); 1110 __func__, net_dev->local->ppp_slot);
1111 goto drop_packet; 1111 goto drop_packet;
1112 } 1112 }
1113 pkt_len = slhc_uncompress(ippp_table[net_dev->local->ppp_slot]->slcomp, 1113 pkt_len = slhc_uncompress(ippp_table[net_dev->local->ppp_slot]->slcomp,
@@ -1553,7 +1553,7 @@ static int isdn_ppp_mp_init( isdn_net_local * lp, ippp_bundle * add_to )
1553 1553
1554 if (lp->ppp_slot < 0) { 1554 if (lp->ppp_slot < 0) {
1555 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", 1555 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
1556 __FUNCTION__, lp->ppp_slot); 1556 __func__, lp->ppp_slot);
1557 return(-EINVAL); 1557 return(-EINVAL);
1558 } 1558 }
1559 1559
@@ -1604,7 +1604,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp,
1604 slot = lp->ppp_slot; 1604 slot = lp->ppp_slot;
1605 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 1605 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
1606 printk(KERN_ERR "%s: lp->ppp_slot(%d)\n", 1606 printk(KERN_ERR "%s: lp->ppp_slot(%d)\n",
1607 __FUNCTION__, lp->ppp_slot); 1607 __func__, lp->ppp_slot);
1608 stats->frame_drops++; 1608 stats->frame_drops++;
1609 dev_kfree_skb(skb); 1609 dev_kfree_skb(skb);
1610 spin_unlock_irqrestore(&mp->lock, flags); 1610 spin_unlock_irqrestore(&mp->lock, flags);
@@ -1641,7 +1641,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp,
1641 slot = lpq->ppp_slot; 1641 slot = lpq->ppp_slot;
1642 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 1642 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
1643 printk(KERN_ERR "%s: lpq->ppp_slot(%d)\n", 1643 printk(KERN_ERR "%s: lpq->ppp_slot(%d)\n",
1644 __FUNCTION__, lpq->ppp_slot); 1644 __func__, lpq->ppp_slot);
1645 } else { 1645 } else {
1646 u32 lls = ippp_table[slot]->last_link_seqno; 1646 u32 lls = ippp_table[slot]->last_link_seqno;
1647 if (MP_LT(lls, minseq)) 1647 if (MP_LT(lls, minseq))
@@ -1875,7 +1875,7 @@ void isdn_ppp_mp_reassembly( isdn_net_dev * net_dev, isdn_net_local * lp,
1875 1875
1876 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { 1876 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
1877 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", 1877 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
1878 __FUNCTION__, lp->ppp_slot); 1878 __func__, lp->ppp_slot);
1879 return; 1879 return;
1880 } 1880 }
1881 if( MP_FLAGS(from) == (MP_BEGIN_FRAG | MP_END_FRAG) ) { 1881 if( MP_FLAGS(from) == (MP_BEGIN_FRAG | MP_END_FRAG) ) {
@@ -2655,7 +2655,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
2655 lp->ppp_slot); 2655 lp->ppp_slot);
2656 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { 2656 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) {
2657 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", 2657 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
2658 __FUNCTION__, lp->ppp_slot); 2658 __func__, lp->ppp_slot);
2659 return; 2659 return;
2660 } 2660 }
2661 is = ippp_table[lp->ppp_slot]; 2661 is = ippp_table[lp->ppp_slot];
@@ -2665,7 +2665,7 @@ static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
2665 int slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot; 2665 int slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot;
2666 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 2666 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
2667 printk(KERN_ERR "%s: slot(%d) out of range\n", 2667 printk(KERN_ERR "%s: slot(%d) out of range\n",
2668 __FUNCTION__, slot); 2668 __func__, slot);
2669 return; 2669 return;
2670 } 2670 }
2671 mis = ippp_table[slot]; 2671 mis = ippp_table[slot];
@@ -2829,7 +2829,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct
2829 return; 2829 return;
2830 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 2830 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
2831 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n", 2831 printk(KERN_ERR "%s: lp->ppp_slot(%d) out of range\n",
2832 __FUNCTION__, slot); 2832 __func__, slot);
2833 return; 2833 return;
2834 } 2834 }
2835 is = ippp_table[slot]; 2835 is = ippp_table[slot];
@@ -2852,7 +2852,7 @@ static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, struct
2852 slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot; 2852 slot = ((isdn_net_local *) (lp->master->priv))->ppp_slot;
2853 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { 2853 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) {
2854 printk(KERN_ERR "%s: slot(%d) out of range\n", 2854 printk(KERN_ERR "%s: slot(%d) out of range\n",
2855 __FUNCTION__, slot); 2855 __func__, slot);
2856 return; 2856 return;
2857 } 2857 }
2858 mis = ippp_table[slot]; 2858 mis = ippp_table[slot];
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index 133eb18e65cc..8af0df1d5b8c 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -1347,7 +1347,7 @@ isdn_tty_tiocmget(struct tty_struct *tty, struct file *file)
1347 modem_info *info = (modem_info *) tty->driver_data; 1347 modem_info *info = (modem_info *) tty->driver_data;
1348 u_char control, status; 1348 u_char control, status;
1349 1349
1350 if (isdn_tty_paranoia_check(info, tty->name, __FUNCTION__)) 1350 if (isdn_tty_paranoia_check(info, tty->name, __func__))
1351 return -ENODEV; 1351 return -ENODEV;
1352 if (tty->flags & (1 << TTY_IO_ERROR)) 1352 if (tty->flags & (1 << TTY_IO_ERROR))
1353 return -EIO; 1353 return -EIO;
@@ -1372,7 +1372,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file,
1372{ 1372{
1373 modem_info *info = (modem_info *) tty->driver_data; 1373 modem_info *info = (modem_info *) tty->driver_data;
1374 1374
1375 if (isdn_tty_paranoia_check(info, tty->name, __FUNCTION__)) 1375 if (isdn_tty_paranoia_check(info, tty->name, __func__))
1376 return -ENODEV; 1376 return -ENODEV;
1377 if (tty->flags & (1 << TTY_IO_ERROR)) 1377 if (tty->flags & (1 << TTY_IO_ERROR))
1378 return -EIO; 1378 return -EIO;
@@ -1608,7 +1608,7 @@ isdn_tty_open(struct tty_struct *tty, struct file *filp)
1608 if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open")) 1608 if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open"))
1609 return -ENODEV; 1609 return -ENODEV;
1610 if (!try_module_get(info->owner)) { 1610 if (!try_module_get(info->owner)) {
1611 printk(KERN_WARNING "%s: cannot reserve module\n", __FUNCTION__); 1611 printk(KERN_WARNING "%s: cannot reserve module\n", __func__);
1612 return -ENODEV; 1612 return -ENODEV;
1613 } 1613 }
1614#ifdef ISDN_DEBUG_MODEM_OPEN 1614#ifdef ISDN_DEBUG_MODEM_OPEN