diff options
Diffstat (limited to 'drivers/isdn/capi/capidrv.c')
-rw-r--r-- | drivers/isdn/capi/capidrv.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c index bb450152fb74..7d8899ad5796 100644 --- a/drivers/isdn/capi/capidrv.c +++ b/drivers/isdn/capi/capidrv.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/isdn/capicmd.h> | 35 | #include <linux/isdn/capicmd.h> |
36 | #include "capidrv.h" | 36 | #include "capidrv.h" |
37 | 37 | ||
38 | static char *revision = "$Revision: 1.1.2.2 $"; | ||
39 | static int debugmode = 0; | 38 | static int debugmode = 0; |
40 | 39 | ||
41 | MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux"); | 40 | MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux"); |
@@ -2266,19 +2265,9 @@ static void __exit proc_exit(void) | |||
2266 | static int __init capidrv_init(void) | 2265 | static int __init capidrv_init(void) |
2267 | { | 2266 | { |
2268 | capi_profile profile; | 2267 | capi_profile profile; |
2269 | char rev[32]; | ||
2270 | char *p; | ||
2271 | u32 ncontr, contr; | 2268 | u32 ncontr, contr; |
2272 | u16 errcode; | 2269 | u16 errcode; |
2273 | 2270 | ||
2274 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | ||
2275 | strncpy(rev, p + 2, sizeof(rev)); | ||
2276 | rev[sizeof(rev)-1] = 0; | ||
2277 | if ((p = strchr(rev, '$')) != NULL && p > rev) | ||
2278 | *(p-1) = 0; | ||
2279 | } else | ||
2280 | strcpy(rev, "1.0"); | ||
2281 | |||
2282 | global.ap.rparam.level3cnt = -2; /* number of bchannels twice */ | 2271 | global.ap.rparam.level3cnt = -2; /* number of bchannels twice */ |
2283 | global.ap.rparam.datablkcnt = 16; | 2272 | global.ap.rparam.datablkcnt = 16; |
2284 | global.ap.rparam.datablklen = 2048; | 2273 | global.ap.rparam.datablklen = 2048; |
@@ -2306,29 +2295,14 @@ static int __init capidrv_init(void) | |||
2306 | } | 2295 | } |
2307 | proc_init(); | 2296 | proc_init(); |
2308 | 2297 | ||
2309 | printk(KERN_NOTICE "capidrv: Rev %s: loaded\n", rev); | ||
2310 | return 0; | 2298 | return 0; |
2311 | } | 2299 | } |
2312 | 2300 | ||
2313 | static void __exit capidrv_exit(void) | 2301 | static void __exit capidrv_exit(void) |
2314 | { | 2302 | { |
2315 | char rev[32]; | ||
2316 | char *p; | ||
2317 | |||
2318 | if ((p = strchr(revision, ':')) != NULL) { | ||
2319 | strncpy(rev, p + 1, sizeof(rev)); | ||
2320 | rev[sizeof(rev)-1] = 0; | ||
2321 | if ((p = strchr(rev, '$')) != NULL) | ||
2322 | *p = 0; | ||
2323 | } else { | ||
2324 | strcpy(rev, " ??? "); | ||
2325 | } | ||
2326 | |||
2327 | capi20_release(&global.ap); | 2303 | capi20_release(&global.ap); |
2328 | 2304 | ||
2329 | proc_exit(); | 2305 | proc_exit(); |
2330 | |||
2331 | printk(KERN_NOTICE "capidrv: Rev%s: unloaded\n", rev); | ||
2332 | } | 2306 | } |
2333 | 2307 | ||
2334 | module_init(capidrv_init); | 2308 | module_init(capidrv_init); |