aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/capi.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2010-02-08 05:12:09 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-16 19:01:19 -0500
commit88549d6b76346e677da8d2d52b37615df18a4345 (patch)
treeb33b752f2bcfc413383606b444649173443f7dca /drivers/isdn/capi/capi.c
parente11e7ac1ecac6b25439c003c5ca661cd399ec35d (diff)
CAPI: Reduce chattiness during module loading/removal
The CVS revisions dumped by all CAPI modules are meaningless today. And that some CAPI module is loaded or removed does not necessarily deserve a message. Just keep the message of the central module, capi.ko, drop the rest. Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/capi/capi.c')
-rw-r--r--drivers/isdn/capi/capi.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index dc5ac52986ee..3b077978c496 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -45,8 +45,6 @@
45 45
46#include "capifs.h" 46#include "capifs.h"
47 47
48static char *revision = "$Revision: 1.1.2.7 $";
49
50MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface"); 48MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface");
51MODULE_AUTHOR("Carsten Paeth"); 49MODULE_AUTHOR("Carsten Paeth");
52MODULE_LICENSE("GPL"); 50MODULE_LICENSE("GPL");
@@ -1489,21 +1487,11 @@ static void __exit proc_exit(void)
1489/* -------- init function and module interface ---------------------- */ 1487/* -------- init function and module interface ---------------------- */
1490 1488
1491 1489
1492static char rev[32];
1493
1494static int __init capi_init(void) 1490static int __init capi_init(void)
1495{ 1491{
1496 char *p; 1492 const char *compileinfo;
1497 char *compileinfo;
1498 int major_ret; 1493 int major_ret;
1499 1494
1500 if ((p = strchr(revision, ':')) != NULL && p[1]) {
1501 strlcpy(rev, p + 2, sizeof(rev));
1502 if ((p = strchr(rev, '$')) != NULL && p > rev)
1503 *(p-1) = 0;
1504 } else
1505 strcpy(rev, "1.0");
1506
1507 major_ret = register_chrdev(capi_major, "capi20", &capi_fops); 1495 major_ret = register_chrdev(capi_major, "capi20", &capi_fops);
1508 if (major_ret < 0) { 1496 if (major_ret < 0) {
1509 printk(KERN_ERR "capi20: unable to get major %d\n", capi_major); 1497 printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);
@@ -1537,8 +1525,8 @@ static int __init capi_init(void)
1537#else 1525#else
1538 compileinfo = " (no middleware)"; 1526 compileinfo = " (no middleware)";
1539#endif 1527#endif
1540 printk(KERN_NOTICE "capi20: Rev %s: started up with major %d%s\n", 1528 printk(KERN_NOTICE "CAPI 2.0 started up with major %d%s\n",
1541 rev, capi_major, compileinfo); 1529 capi_major, compileinfo);
1542 1530
1543 return 0; 1531 return 0;
1544} 1532}
@@ -1554,7 +1542,6 @@ static void __exit capi_exit(void)
1554#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE 1542#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
1555 capinc_tty_exit(); 1543 capinc_tty_exit();
1556#endif 1544#endif
1557 printk(KERN_NOTICE "capi: Rev %s: unloaded\n", rev);
1558} 1545}
1559 1546
1560module_init(capi_init); 1547module_init(capi_init);