aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/act2000/act2000_isa.c6
-rw-r--r--drivers/isdn/capi/capi.c2
-rw-r--r--drivers/isdn/capi/kcapi_proc.c2
-rw-r--r--drivers/isdn/gigaset/Kconfig14
-rw-r--r--drivers/isdn/gigaset/usb-gigaset.c8
-rw-r--r--drivers/isdn/hardware/eicon/debug.c2
-rw-r--r--drivers/isdn/hardware/eicon/message.c70
-rw-r--r--drivers/isdn/hardware/mISDN/hfcpci.c4
-rw-r--r--drivers/isdn/hardware/mISDN/hfcsusb.c6
-rw-r--r--drivers/isdn/hardware/mISDN/hfcsusb.h6
-rw-r--r--drivers/isdn/hisax/callc.c1
-rw-r--r--drivers/isdn/hisax/config.c6
-rw-r--r--drivers/isdn/hisax/hfcscard.c2
-rw-r--r--drivers/isdn/hisax/hisax.h9
-rw-r--r--drivers/isdn/hisax/isdnl1.c4
-rw-r--r--drivers/isdn/hisax/sedlbauer.c2
-rw-r--r--drivers/isdn/hisax/teles0.c2
-rw-r--r--drivers/isdn/hisax/teles3.c1
-rw-r--r--drivers/isdn/mISDN/clock.c10
-rw-r--r--drivers/isdn/mISDN/timerdev.c3
-rw-r--r--drivers/isdn/pcbit/layer2.c6
21 files changed, 90 insertions, 76 deletions
diff --git a/drivers/isdn/act2000/act2000_isa.c b/drivers/isdn/act2000/act2000_isa.c
index 1bd8960ead33..fea5b783335d 100644
--- a/drivers/isdn/act2000/act2000_isa.c
+++ b/drivers/isdn/act2000/act2000_isa.c
@@ -257,9 +257,9 @@ act2000_isa_receive(act2000_card *card)
257 printk(KERN_WARNING 257 printk(KERN_WARNING
258 "act2000_isa_receive: Invalid CAPI msg\n"); 258 "act2000_isa_receive: Invalid CAPI msg\n");
259 { 259 {
260 int i; __u8 *p; __u8 *c; __u8 tmp[30]; 260 int i; __u8 *p; __u8 *t; __u8 tmp[30];
261 for (i = 0, p = (__u8 *)&card->idat.isa.rcvhdr, c = tmp; i < 8; i++) 261 for (i = 0, p = (__u8 *)&card->idat.isa.rcvhdr, t = tmp; i < 8; i++)
262 c += sprintf(c, "%02x ", *(p++)); 262 t += sprintf(t, "%02x ", *(p++));
263 printk(KERN_WARNING "act2000_isa_receive: %s\n", tmp); 263 printk(KERN_WARNING "act2000_isa_receive: %s\n", tmp);
264 } 264 }
265 } 265 }
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index 1b5bf87c4cf4..3e468d2cf730 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -277,7 +277,7 @@ static void capiminor_free(struct capiminor *mp)
277 list_del(&mp->list); 277 list_del(&mp->list);
278 write_unlock_irqrestore(&capiminor_list_lock, flags); 278 write_unlock_irqrestore(&capiminor_list_lock, flags);
279 279
280 if (mp->ttyskb) kfree_skb(mp->ttyskb); 280 kfree_skb(mp->ttyskb);
281 mp->ttyskb = NULL; 281 mp->ttyskb = NULL;
282 skb_queue_purge(&mp->inqueue); 282 skb_queue_purge(&mp->inqueue);
283 skb_queue_purge(&mp->outqueue); 283 skb_queue_purge(&mp->outqueue);
diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c
index c29208bd7521..50ed778f63fc 100644
--- a/drivers/isdn/capi/kcapi_proc.c
+++ b/drivers/isdn/capi/kcapi_proc.c
@@ -239,6 +239,7 @@ static const struct file_operations proc_applstats_ops = {
239// --------------------------------------------------------------------------- 239// ---------------------------------------------------------------------------
240 240
241static void *capi_driver_start(struct seq_file *seq, loff_t *pos) 241static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
242 __acquires(&capi_drivers_list_lock)
242{ 243{
243 read_lock(&capi_drivers_list_lock); 244 read_lock(&capi_drivers_list_lock);
244 return seq_list_start(&capi_drivers, *pos); 245 return seq_list_start(&capi_drivers, *pos);
@@ -250,6 +251,7 @@ static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos)
250} 251}
251 252
252static void capi_driver_stop(struct seq_file *seq, void *v) 253static void capi_driver_stop(struct seq_file *seq, void *v)
254 __releases(&capi_drivers_list_lock)
253{ 255{
254 read_unlock(&capi_drivers_list_lock); 256 read_unlock(&capi_drivers_list_lock);
255} 257}
diff --git a/drivers/isdn/gigaset/Kconfig b/drivers/isdn/gigaset/Kconfig
index 0017e50c6948..9ca889adf120 100644
--- a/drivers/isdn/gigaset/Kconfig
+++ b/drivers/isdn/gigaset/Kconfig
@@ -1,5 +1,5 @@
1menuconfig ISDN_DRV_GIGASET 1menuconfig ISDN_DRV_GIGASET
2 tristate "Siemens Gigaset support (isdn)" 2 tristate "Siemens Gigaset support"
3 select CRC_CCITT 3 select CRC_CCITT
4 select BITREVERSE 4 select BITREVERSE
5 help 5 help
@@ -11,11 +11,11 @@ menuconfig ISDN_DRV_GIGASET
11 one of the connection specific parts that follow. 11 one of the connection specific parts that follow.
12 This will build a module called "gigaset". 12 This will build a module called "gigaset".
13 13
14if ISDN_DRV_GIGASET!=n 14if ISDN_DRV_GIGASET
15 15
16config GIGASET_BASE 16config GIGASET_BASE
17 tristate "Gigaset base station support" 17 tristate "Gigaset base station support"
18 depends on ISDN_DRV_GIGASET && USB 18 depends on USB
19 help 19 help
20 Say M here if you want to use the USB interface of the Gigaset 20 Say M here if you want to use the USB interface of the Gigaset
21 base for connection to your system. 21 base for connection to your system.
@@ -23,7 +23,7 @@ config GIGASET_BASE
23 23
24config GIGASET_M105 24config GIGASET_M105
25 tristate "Gigaset M105 support" 25 tristate "Gigaset M105 support"
26 depends on ISDN_DRV_GIGASET && USB 26 depends on USB
27 help 27 help
28 Say M here if you want to connect to the Gigaset base via DECT 28 Say M here if you want to connect to the Gigaset base via DECT
29 using a Gigaset M105 (Sinus 45 Data 2) USB DECT device. 29 using a Gigaset M105 (Sinus 45 Data 2) USB DECT device.
@@ -31,7 +31,6 @@ config GIGASET_M105
31 31
32config GIGASET_M101 32config GIGASET_M101
33 tristate "Gigaset M101 support" 33 tristate "Gigaset M101 support"
34 depends on ISDN_DRV_GIGASET
35 help 34 help
36 Say M here if you want to connect to the Gigaset base via DECT 35 Say M here if you want to connect to the Gigaset base via DECT
37 using a Gigaset M101 (Sinus 45 Data 1) RS232 DECT device. 36 using a Gigaset M101 (Sinus 45 Data 1) RS232 DECT device.
@@ -48,7 +47,6 @@ config GIGASET_UNDOCREQ
48 help 47 help
49 This enables support for USB requests we only know from 48 This enables support for USB requests we only know from
50 reverse engineering (currently M105 only). If you need 49 reverse engineering (currently M105 only). If you need
51 features like configuration mode of M105, say yes. If you 50 features like configuration mode of M105, say yes.
52 care about your device, say no.
53 51
54endif # ISDN_DRV_GIGASET != n 52endif # ISDN_DRV_GIGASET
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c
index fba61f670527..d78385166099 100644
--- a/drivers/isdn/gigaset/usb-gigaset.c
+++ b/drivers/isdn/gigaset/usb-gigaset.c
@@ -278,17 +278,17 @@ static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag)
278static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, 278static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state,
279 unsigned new_state) 279 unsigned new_state)
280{ 280{
281 return -EINVAL; 281 return -ENOTTY;
282} 282}
283 283
284static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) 284static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag)
285{ 285{
286 return -EINVAL; 286 return -ENOTTY;
287} 287}
288 288
289static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) 289static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag)
290{ 290{
291 return -EINVAL; 291 return -ENOTTY;
292} 292}
293#endif 293#endif
294 294
@@ -577,7 +577,7 @@ static int gigaset_brkchars(struct cardstate *cs, const unsigned char buf[6])
577 return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x19, 0x41, 577 return usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x19, 0x41,
578 0, 0, &buf, 6, 2000); 578 0, 0, &buf, 6, 2000);
579#else 579#else
580 return -EINVAL; 580 return -ENOTTY;
581#endif 581#endif
582} 582}
583 583
diff --git a/drivers/isdn/hardware/eicon/debug.c b/drivers/isdn/hardware/eicon/debug.c
index 84318ec8d13e..33ce89eed65b 100644
--- a/drivers/isdn/hardware/eicon/debug.c
+++ b/drivers/isdn/hardware/eicon/debug.c
@@ -1198,7 +1198,7 @@ int SuperTraceASSIGN (void* AdapterHandle, byte* data) {
1198 pC->xbuffer[5] = (byte)(rx_dma_magic >> 8); 1198 pC->xbuffer[5] = (byte)(rx_dma_magic >> 8);
1199 pC->xbuffer[6] = (byte)(rx_dma_magic >> 16); 1199 pC->xbuffer[6] = (byte)(rx_dma_magic >> 16);
1200 pC->xbuffer[7] = (byte)(rx_dma_magic >> 24); 1200 pC->xbuffer[7] = (byte)(rx_dma_magic >> 24);
1201 pC->xbuffer[8] = (byte)DIVA_MAX_MANAGEMENT_TRANSFER_SIZE; 1201 pC->xbuffer[8] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE & 0xFF);
1202 pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8); 1202 pC->xbuffer[9] = (byte)(DIVA_MAX_MANAGEMENT_TRANSFER_SIZE >> 8);
1203 pC->xbuffer[10] = 0; 1203 pC->xbuffer[10] = 0;
1204 1204
diff --git a/drivers/isdn/hardware/eicon/message.c b/drivers/isdn/hardware/eicon/message.c
index 4cc94f200b72..31f91c18c698 100644
--- a/drivers/isdn/hardware/eicon/message.c
+++ b/drivers/isdn/hardware/eicon/message.c
@@ -1194,7 +1194,8 @@ static char hex_digit_table[0x10] =
1194/* translation function for each message */ 1194/* translation function for each message */
1195/*------------------------------------------------------------------*/ 1195/*------------------------------------------------------------------*/
1196 1196
1197byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 1197static byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1198 PLCI *plci, APPL *appl, API_PARSE *parms)
1198{ 1199{
1199 word ch; 1200 word ch;
1200 word i; 1201 word i;
@@ -1411,7 +1412,8 @@ byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
1411 return 2; 1412 return 2;
1412} 1413}
1413 1414
1414byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 1415static byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1416 PLCI *plci, APPL *appl, API_PARSE *parms)
1415{ 1417{
1416 word i, Info; 1418 word i, Info;
1417 word Reject; 1419 word Reject;
@@ -1567,13 +1569,15 @@ byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
1567 return 1; 1569 return 1;
1568} 1570}
1569 1571
1570byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1572static byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1573 PLCI *plci, APPL *appl, API_PARSE *msg)
1571{ 1574{
1572 dbug(1,dprintf("connect_a_res")); 1575 dbug(1,dprintf("connect_a_res"));
1573 return false; 1576 return false;
1574} 1577}
1575 1578
1576byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1579static byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1580 PLCI *plci, APPL *appl, API_PARSE *msg)
1577{ 1581{
1578 word Info; 1582 word Info;
1579 word i; 1583 word i;
@@ -1628,7 +1632,8 @@ byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc
1628 return false; 1632 return false;
1629} 1633}
1630 1634
1631byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1635static byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1636 PLCI *plci, APPL *appl, API_PARSE *msg)
1632{ 1637{
1633 dbug(1,dprintf("disconnect_res")); 1638 dbug(1,dprintf("disconnect_res"));
1634 if(plci) 1639 if(plci)
@@ -1655,7 +1660,8 @@ byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc
1655 return 0; 1660 return 0;
1656} 1661}
1657 1662
1658byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 1663static byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1664 PLCI *plci, APPL *appl, API_PARSE *parms)
1659{ 1665{
1660 word Info; 1666 word Info;
1661 byte i; 1667 byte i;
@@ -1704,7 +1710,8 @@ byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, A
1704 return false; 1710 return false;
1705} 1711}
1706 1712
1707byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1713static byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1714 PLCI *plci, APPL *appl, API_PARSE *msg)
1708{ 1715{
1709 word i; 1716 word i;
1710 API_PARSE * ai; 1717 API_PARSE * ai;
@@ -1813,13 +1820,15 @@ byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APP
1813 return false; 1820 return false;
1814} 1821}
1815 1822
1816byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1823static byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1824 PLCI *plci, APPL *appl, API_PARSE *msg)
1817{ 1825{
1818 dbug(1,dprintf("info_res")); 1826 dbug(1,dprintf("info_res"));
1819 return false; 1827 return false;
1820} 1828}
1821 1829
1822byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1830static byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1831 PLCI *plci, APPL *appl, API_PARSE *msg)
1823{ 1832{
1824 word Info; 1833 word Info;
1825 byte ret; 1834 byte ret;
@@ -1849,7 +1858,8 @@ byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, AP
1849 return ret; 1858 return ret;
1850} 1859}
1851 1860
1852byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 1861static byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
1862 PLCI *plci, APPL *appl, API_PARSE *msg)
1853{ 1863{
1854 word Info = 0; 1864 word Info = 0;
1855 word i = 0; 1865 word i = 0;
@@ -2599,13 +2609,15 @@ byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
2599 return false; 2609 return false;
2600} 2610}
2601 2611
2602byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 2612static byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
2613 PLCI *plci, APPL *appl, API_PARSE *msg)
2603{ 2614{
2604 dbug(1,dprintf("facility_res")); 2615 dbug(1,dprintf("facility_res"));
2605 return false; 2616 return false;
2606} 2617}
2607 2618
2608byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 2619static byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
2620 PLCI *plci, APPL *appl, API_PARSE *parms)
2609{ 2621{
2610 word Info = 0; 2622 word Info = 0;
2611 byte req; 2623 byte req;
@@ -2839,7 +2851,8 @@ byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc
2839 return false; 2851 return false;
2840} 2852}
2841 2853
2842byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 2854static byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
2855 PLCI *plci, APPL *appl, API_PARSE *parms)
2843{ 2856{
2844 word ncci; 2857 word ncci;
2845 API_PARSE * ncpi; 2858 API_PARSE * ncpi;
@@ -2954,7 +2967,8 @@ byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plc
2954 return false; 2967 return false;
2955} 2968}
2956 2969
2957byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 2970static byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
2971 PLCI *plci, APPL *appl, API_PARSE *parms)
2958{ 2972{
2959 word ncci; 2973 word ncci;
2960 2974
@@ -2974,7 +2988,8 @@ byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * p
2974 return false; 2988 return false;
2975} 2989}
2976 2990
2977byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 2991static byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
2992 PLCI *plci, APPL *appl, API_PARSE *parms)
2978{ 2993{
2979 word Info; 2994 word Info;
2980 word ncci; 2995 word ncci;
@@ -3030,7 +3045,8 @@ byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI *
3030 return false; 3045 return false;
3031} 3046}
3032 3047
3033byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3048static byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3049 PLCI *plci, APPL *appl, API_PARSE *parms)
3034{ 3050{
3035 word ncci; 3051 word ncci;
3036 word i; 3052 word i;
@@ -3086,7 +3102,8 @@ byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI *
3086 return false; 3102 return false;
3087} 3103}
3088 3104
3089byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3105static byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3106 PLCI *plci, APPL *appl, API_PARSE *parms)
3090{ 3107{
3091 NCCI *ncci_ptr; 3108 NCCI *ncci_ptr;
3092 DATA_B3_DESC *data; 3109 DATA_B3_DESC *data;
@@ -3163,7 +3180,8 @@ byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
3163 return false; 3180 return false;
3164} 3181}
3165 3182
3166byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3183static byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3184 PLCI *plci, APPL *appl, API_PARSE *parms)
3167{ 3185{
3168 word n; 3186 word n;
3169 word ncci; 3187 word ncci;
@@ -3196,7 +3214,8 @@ byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
3196 return false; 3214 return false;
3197} 3215}
3198 3216
3199byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3217static byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3218 PLCI *plci, APPL *appl, API_PARSE *parms)
3200{ 3219{
3201 word Info; 3220 word Info;
3202 word ncci; 3221 word ncci;
@@ -3237,7 +3256,8 @@ byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
3237 return false; 3256 return false;
3238} 3257}
3239 3258
3240byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3259static byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3260 PLCI *plci, APPL *appl, API_PARSE *parms)
3241{ 3261{
3242 word ncci; 3262 word ncci;
3243 3263
@@ -3261,7 +3281,8 @@ byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci,
3261 return false; 3281 return false;
3262} 3282}
3263 3283
3264byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * parms) 3284static byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3285 PLCI *plci, APPL *appl, API_PARSE *parms)
3265{ 3286{
3266 word ncci; 3287 word ncci;
3267 API_PARSE * ncpi; 3288 API_PARSE * ncpi;
@@ -3295,7 +3316,8 @@ byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI
3295} 3316}
3296 3317
3297 3318
3298byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER * a, PLCI * plci, APPL * appl, API_PARSE * msg) 3319static byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a,
3320 PLCI *plci, APPL *appl, API_PARSE *msg)
3299{ 3321{
3300 word Info=0; 3322 word Info=0;
3301 word i; 3323 word i;
@@ -8689,7 +8711,7 @@ static word add_modem_b23 (PLCI * plci, API_PARSE* bp_parms)
8689/* send a request for the signaling entity */ 8711/* send a request for the signaling entity */
8690/*------------------------------------------------------------------*/ 8712/*------------------------------------------------------------------*/
8691 8713
8692void sig_req(PLCI * plci, byte req, byte Id) 8714static void sig_req(PLCI *plci, byte req, byte Id)
8693{ 8715{
8694 if(!plci) return; 8716 if(!plci) return;
8695 if(plci->adapter->adapter_disabled) return; 8717 if(plci->adapter->adapter_disabled) return;
@@ -8789,7 +8811,7 @@ static void send_req(PLCI *plci)
8789 dbug(1,dprintf("send_ok")); 8811 dbug(1,dprintf("send_ok"));
8790} 8812}
8791 8813
8792void send_data(PLCI * plci) 8814static void send_data(PLCI *plci)
8793{ 8815{
8794 DIVA_CAPI_ADAPTER * a; 8816 DIVA_CAPI_ADAPTER * a;
8795 DATA_B3_DESC * data; 8817 DATA_B3_DESC * data;
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
index f0e14dfcf71d..641a9cd1a532 100644
--- a/drivers/isdn/hardware/mISDN/hfcpci.c
+++ b/drivers/isdn/hardware/mISDN/hfcpci.c
@@ -56,8 +56,8 @@ static const char *hfcpci_revision = "2.0";
56static int HFC_cnt; 56static int HFC_cnt;
57static uint debug; 57static uint debug;
58static uint poll, tics; 58static uint poll, tics;
59struct timer_list hfc_tl; 59static struct timer_list hfc_tl;
60u32 hfc_jiffies; 60static unsigned long hfc_jiffies;
61 61
62MODULE_AUTHOR("Karsten Keil"); 62MODULE_AUTHOR("Karsten Keil");
63MODULE_LICENSE("GPL"); 63MODULE_LICENSE("GPL");
diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c b/drivers/isdn/hardware/mISDN/hfcsusb.c
index ba6925fbf38a..9c427fb204ee 100644
--- a/drivers/isdn/hardware/mISDN/hfcsusb.c
+++ b/drivers/isdn/hardware/mISDN/hfcsusb.c
@@ -35,7 +35,7 @@
35#include <linux/mISDNhw.h> 35#include <linux/mISDNhw.h>
36#include "hfcsusb.h" 36#include "hfcsusb.h"
37 37
38const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05"; 38static const char *hfcsusb_rev = "Revision: 0.3.3 (socket), 2008-11-05";
39 39
40static unsigned int debug; 40static unsigned int debug;
41static int poll = DEFAULT_TRANSP_BURST_SZ; 41static int poll = DEFAULT_TRANSP_BURST_SZ;
@@ -974,7 +974,7 @@ hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len,
974 spin_unlock(&hw->lock); 974 spin_unlock(&hw->lock);
975} 975}
976 976
977void 977static void
978fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, 978fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe,
979 void *buf, int num_packets, int packet_size, int interval, 979 void *buf, int num_packets, int packet_size, int interval,
980 usb_complete_t complete, void *context) 980 usb_complete_t complete, void *context)
@@ -1720,7 +1720,7 @@ hfcsusb_stop_endpoint(struct hfcsusb *hw, int channel)
1720 1720
1721 1721
1722/* Hardware Initialization */ 1722/* Hardware Initialization */
1723int 1723static int
1724setup_hfcsusb(struct hfcsusb *hw) 1724setup_hfcsusb(struct hfcsusb *hw)
1725{ 1725{
1726 int err; 1726 int err;
diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.h b/drivers/isdn/hardware/mISDN/hfcsusb.h
index 098486b8e8d2..43efe7358fa3 100644
--- a/drivers/isdn/hardware/mISDN/hfcsusb.h
+++ b/drivers/isdn/hardware/mISDN/hfcsusb.h
@@ -198,7 +198,7 @@ validconf[][19] = {
198}; 198};
199 199
200/* string description of chosen config */ 200/* string description of chosen config */
201char *conf_str[] = { 201static char *conf_str[] = {
202 "4 Interrupt IN + 3 Isochron OUT", 202 "4 Interrupt IN + 3 Isochron OUT",
203 "3 Interrupt IN + 3 Isochron OUT", 203 "3 Interrupt IN + 3 Isochron OUT",
204 "4 Isochron IN + 3 Isochron OUT", 204 "4 Isochron IN + 3 Isochron OUT",
@@ -316,7 +316,7 @@ struct hfcsusb_vdata {
316#define HFC_MAX_TE_LAYER1_STATE 8 316#define HFC_MAX_TE_LAYER1_STATE 8
317#define HFC_MAX_NT_LAYER1_STATE 4 317#define HFC_MAX_NT_LAYER1_STATE 4
318 318
319const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = { 319static const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = {
320 "TE F0 - Reset", 320 "TE F0 - Reset",
321 "TE F1 - Reset", 321 "TE F1 - Reset",
322 "TE F2 - Sensing", 322 "TE F2 - Sensing",
@@ -328,7 +328,7 @@ const char *HFC_TE_LAYER1_STATES[HFC_MAX_TE_LAYER1_STATE + 1] = {
328 "TE F8 - Lost framing", 328 "TE F8 - Lost framing",
329}; 329};
330 330
331const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = { 331static const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = {
332 "NT G0 - Reset", 332 "NT G0 - Reset",
333 "NT G1 - Deactive", 333 "NT G1 - Deactive",
334 "NT G2 - Pending activation", 334 "NT G2 - Pending activation",
diff --git a/drivers/isdn/hisax/callc.c b/drivers/isdn/hisax/callc.c
index 7c56c44f0fd1..025a20d487c5 100644
--- a/drivers/isdn/hisax/callc.c
+++ b/drivers/isdn/hisax/callc.c
@@ -24,7 +24,6 @@
24const char *lli_revision = "$Revision: 2.59.2.4 $"; 24const char *lli_revision = "$Revision: 2.59.2.4 $";
25 25
26extern struct IsdnCard cards[]; 26extern struct IsdnCard cards[];
27extern int nrcards;
28 27
29static int init_b_st(struct Channel *chanp, int incoming); 28static int init_b_st(struct Channel *chanp, int incoming);
30static void release_b_st(struct Channel *chanp); 29static void release_b_st(struct Channel *chanp);
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c
index ded9d0baf607..4fab18d4d02f 100644
--- a/drivers/isdn/hisax/config.c
+++ b/drivers/isdn/hisax/config.c
@@ -361,12 +361,6 @@ module_param_array(io1, int, NULL, 0);
361 361
362int nrcards; 362int nrcards;
363 363
364extern const char *l1_revision;
365extern const char *l2_revision;
366extern const char *l3_revision;
367extern const char *lli_revision;
368extern const char *tei_revision;
369
370char *HiSax_getrev(const char *revision) 364char *HiSax_getrev(const char *revision)
371{ 365{
372 char *rev; 366 char *rev;
diff --git a/drivers/isdn/hisax/hfcscard.c b/drivers/isdn/hisax/hfcscard.c
index cf082665cc8b..20d7688b397b 100644
--- a/drivers/isdn/hisax/hfcscard.c
+++ b/drivers/isdn/hisax/hfcscard.c
@@ -16,8 +16,6 @@
16#include "hfc_2bds0.h" 16#include "hfc_2bds0.h"
17#include "isdnl1.h" 17#include "isdnl1.h"
18 18
19extern const char *CardType[];
20
21static const char *hfcs_revision = "$Revision: 1.10.2.4 $"; 19static const char *hfcs_revision = "$Revision: 1.10.2.4 $";
22 20
23static irqreturn_t 21static irqreturn_t
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h
index e8d429fda846..f8527046f197 100644
--- a/drivers/isdn/hisax/hisax.h
+++ b/drivers/isdn/hisax/hisax.h
@@ -121,6 +121,15 @@
121 121
122#ifdef __KERNEL__ 122#ifdef __KERNEL__
123 123
124extern const char *CardType[];
125extern int nrcards;
126
127extern const char *l1_revision;
128extern const char *l2_revision;
129extern const char *l3_revision;
130extern const char *lli_revision;
131extern const char *tei_revision;
132
124/* include l3dss1 & ni1 specific process structures, but no other defines */ 133/* include l3dss1 & ni1 specific process structures, but no other defines */
125#ifdef CONFIG_HISAX_EURO 134#ifdef CONFIG_HISAX_EURO
126 #define l3dss1_process 135 #define l3dss1_process
diff --git a/drivers/isdn/hisax/isdnl1.c b/drivers/isdn/hisax/isdnl1.c
index a14204ec88ee..317f16f516f2 100644
--- a/drivers/isdn/hisax/isdnl1.c
+++ b/drivers/isdn/hisax/isdnl1.c
@@ -18,12 +18,12 @@
18 * 18 *
19 */ 19 */
20 20
21const char *l1_revision = "$Revision: 2.46.2.5 $";
22
23#include <linux/init.h> 21#include <linux/init.h>
24#include "hisax.h" 22#include "hisax.h"
25#include "isdnl1.h" 23#include "isdnl1.h"
26 24
25const char *l1_revision = "$Revision: 2.46.2.5 $";
26
27#define TIMER3_VALUE 7000 27#define TIMER3_VALUE 7000
28 28
29static struct Fsm l1fsm_b; 29static struct Fsm l1fsm_b;
diff --git a/drivers/isdn/hisax/sedlbauer.c b/drivers/isdn/hisax/sedlbauer.c
index a10dfa82c734..5569a522e2a1 100644
--- a/drivers/isdn/hisax/sedlbauer.c
+++ b/drivers/isdn/hisax/sedlbauer.c
@@ -48,8 +48,6 @@
48#include <linux/pci.h> 48#include <linux/pci.h>
49#include <linux/isapnp.h> 49#include <linux/isapnp.h>
50 50
51extern const char *CardType[];
52
53static const char *Sedlbauer_revision = "$Revision: 1.34.2.6 $"; 51static const char *Sedlbauer_revision = "$Revision: 1.34.2.6 $";
54 52
55static const char *Sedlbauer_Types[] = 53static const char *Sedlbauer_Types[] =
diff --git a/drivers/isdn/hisax/teles0.c b/drivers/isdn/hisax/teles0.c
index 48581335f43c..3ca0bed1b88c 100644
--- a/drivers/isdn/hisax/teles0.c
+++ b/drivers/isdn/hisax/teles0.c
@@ -21,8 +21,6 @@
21#include "isac.h" 21#include "isac.h"
22#include "hscx.h" 22#include "hscx.h"
23 23
24extern const char *CardType[];
25
26static const char *teles0_revision = "$Revision: 2.15.2.4 $"; 24static const char *teles0_revision = "$Revision: 2.15.2.4 $";
27 25
28#define TELES_IOMEM_SIZE 0x400 26#define TELES_IOMEM_SIZE 0x400
diff --git a/drivers/isdn/hisax/teles3.c b/drivers/isdn/hisax/teles3.c
index 5dc9f1a43629..e9f5bb4cdffa 100644
--- a/drivers/isdn/hisax/teles3.c
+++ b/drivers/isdn/hisax/teles3.c
@@ -20,7 +20,6 @@
20#include "hscx.h" 20#include "hscx.h"
21#include "isdnl1.h" 21#include "isdnl1.h"
22 22
23extern const char *CardType[];
24static const char *teles3_revision = "$Revision: 2.19.2.4 $"; 23static const char *teles3_revision = "$Revision: 2.19.2.4 $";
25 24
26#define byteout(addr,val) outb(val,addr) 25#define byteout(addr,val) outb(val,addr)
diff --git a/drivers/isdn/mISDN/clock.c b/drivers/isdn/mISDN/clock.c
index 44d9c3d5d33d..f1bbc88763b2 100644
--- a/drivers/isdn/mISDN/clock.c
+++ b/drivers/isdn/mISDN/clock.c
@@ -41,11 +41,11 @@
41 41
42static u_int *debug; 42static u_int *debug;
43static LIST_HEAD(iclock_list); 43static LIST_HEAD(iclock_list);
44DEFINE_RWLOCK(iclock_lock); 44static DEFINE_RWLOCK(iclock_lock);
45u16 iclock_count; /* counter of last clock */ 45static u16 iclock_count; /* counter of last clock */
46struct timeval iclock_tv; /* time stamp of last clock */ 46static struct timeval iclock_tv; /* time stamp of last clock */
47int iclock_tv_valid; /* already received one timestamp */ 47static int iclock_tv_valid; /* already received one timestamp */
48struct mISDNclock *iclock_current; 48static struct mISDNclock *iclock_current;
49 49
50void 50void
51mISDN_init_clock(u_int *dp) 51mISDN_init_clock(u_int *dp)
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c
index f2b32186d4a1..bbd99d3282c0 100644
--- a/drivers/isdn/mISDN/timerdev.c
+++ b/drivers/isdn/mISDN/timerdev.c
@@ -152,8 +152,7 @@ dev_expire_timer(unsigned long data)
152 u_long flags; 152 u_long flags;
153 153
154 spin_lock_irqsave(&timer->dev->lock, flags); 154 spin_lock_irqsave(&timer->dev->lock, flags);
155 list_del(&timer->list); 155 list_move_tail(&timer->list, &timer->dev->expired);
156 list_add_tail(&timer->list, &timer->dev->expired);
157 spin_unlock_irqrestore(&timer->dev->lock, flags); 156 spin_unlock_irqrestore(&timer->dev->lock, flags);
158 wake_up_interruptible(&timer->dev->wait); 157 wake_up_interruptible(&timer->dev->wait);
159} 158}
diff --git a/drivers/isdn/pcbit/layer2.c b/drivers/isdn/pcbit/layer2.c
index 5ba2a879df14..e075e8d2fce0 100644
--- a/drivers/isdn/pcbit/layer2.c
+++ b/drivers/isdn/pcbit/layer2.c
@@ -347,8 +347,7 @@ pcbit_receive(struct pcbit_dev *dev)
347 if (dev->read_frame) { 347 if (dev->read_frame) {
348 printk(KERN_DEBUG "pcbit_receive: Type 0 frame and read_frame != NULL\n"); 348 printk(KERN_DEBUG "pcbit_receive: Type 0 frame and read_frame != NULL\n");
349 /* discard previous queued frame */ 349 /* discard previous queued frame */
350 if (dev->read_frame->skb) 350 kfree_skb(dev->read_frame->skb);
351 kfree_skb(dev->read_frame->skb);
352 kfree(dev->read_frame); 351 kfree(dev->read_frame);
353 dev->read_frame = NULL; 352 dev->read_frame = NULL;
354 } 353 }
@@ -601,8 +600,7 @@ pcbit_l2_err_recover(unsigned long data)
601 dev->w_busy = dev->r_busy = 1; 600 dev->w_busy = dev->r_busy = 1;
602 601
603 if (dev->read_frame) { 602 if (dev->read_frame) {
604 if (dev->read_frame->skb) 603 kfree_skb(dev->read_frame->skb);
605 kfree_skb(dev->read_frame->skb);
606 kfree(dev->read_frame); 604 kfree(dev->read_frame);
607 dev->read_frame = NULL; 605 dev->read_frame = NULL;
608 } 606 }