diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-07-17 06:21:35 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-17 06:21:35 -0400 |
commit | 0ed081ce203b0fd9a44763b70f41e36596f9b431 (patch) | |
tree | 0c38268308d14d67a697812bd3cf4623a65c3626 | |
parent | 1c1133e1ff850279d604581af31a400c830b0393 (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>
-rw-r--r-- | block/bsg.c | 8 |
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 | ||
36 | const 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 | ||
38 | struct bsg_device { | 39 | struct 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; |
1077 | remove_cdev: | 1079 | remove_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 | ||
1089 | MODULE_AUTHOR("Jens Axboe"); | 1091 | MODULE_AUTHOR("Jens Axboe"); |
1090 | MODULE_DESCRIPTION("Block layer SGSI generic (sg) driver"); | 1092 | MODULE_DESCRIPTION(BSG_DESCRIPTION); |
1091 | MODULE_LICENSE("GPL"); | 1093 | MODULE_LICENSE("GPL"); |
1092 | 1094 | ||
1093 | device_initcall(bsg_init); | 1095 | device_initcall(bsg_init); |