aboutsummaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-07-17 06:21:35 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-17 06:21:35 -0400
commit0ed081ce203b0fd9a44763b70f41e36596f9b431 (patch)
tree0c38268308d14d67a697812bd3cf4623a65c3626 /block/bsg.c
parent1c1133e1ff850279d604581af31a400c830b0393 (diff)
bsg: minor cleanup
- fix MODULE_DESCRIPTION typo. - unify MODULE_DESCRIPTION and bsg_version. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/bsg.c')
-rw-r--r--block/bsg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 55a4303ed21f..8e5fcf2d70e6 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -33,7 +33,8 @@
33#include <scsi/scsi_driver.h> 33#include <scsi/scsi_driver.h>
34#include <scsi/sg.h> 34#include <scsi/sg.h>
35 35
36const static char bsg_version[] = "block layer sg (bsg) 0.4"; 36#define BSG_DESCRIPTION "Block layer SCSI generic (bsg) driver"
37#define BSG_VERSION "0.4"
37 38
38struct bsg_device { 39struct bsg_device {
39 request_queue_t *queue; 40 request_queue_t *queue;
@@ -1072,7 +1073,8 @@ static int __init bsg_init(void)
1072 if (ret) 1073 if (ret)
1073 goto remove_cdev; 1074 goto remove_cdev;
1074 1075
1075 printk(KERN_INFO "%s loaded (major %d)\n", bsg_version, bsg_major); 1076 printk(KERN_INFO BSG_DESCRIPTION "version " BSG_VERSION
1077 " loaded (major %d)\n", bsg_major);
1076 return 0; 1078 return 0;
1077remove_cdev: 1079remove_cdev:
1078 printk(KERN_ERR "bsg: failed register scsi interface %d\n", ret); 1080 printk(KERN_ERR "bsg: failed register scsi interface %d\n", ret);
@@ -1087,7 +1089,7 @@ destroy_kmemcache:
1087} 1089}
1088 1090
1089MODULE_AUTHOR("Jens Axboe"); 1091MODULE_AUTHOR("Jens Axboe");
1090MODULE_DESCRIPTION("Block layer SGSI generic (sg) driver"); 1092MODULE_DESCRIPTION(BSG_DESCRIPTION);
1091MODULE_LICENSE("GPL"); 1093MODULE_LICENSE("GPL");
1092 1094
1093device_initcall(bsg_init); 1095device_initcall(bsg_init);