提交 0ed081ce 编写于 作者: F FUJITA Tomonori 提交者: Jens Axboe

bsg: minor cleanup

- fix MODULE_DESCRIPTION typo.
- unify MODULE_DESCRIPTION and bsg_version.
Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 1c1133e1
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
#include <scsi/scsi_driver.h> #include <scsi/scsi_driver.h>
#include <scsi/sg.h> #include <scsi/sg.h>
const static char bsg_version[] = "block layer sg (bsg) 0.4"; #define BSG_DESCRIPTION "Block layer SCSI generic (bsg) driver"
#define BSG_VERSION "0.4"
struct bsg_device { struct bsg_device {
request_queue_t *queue; request_queue_t *queue;
...@@ -1072,7 +1073,8 @@ static int __init bsg_init(void) ...@@ -1072,7 +1073,8 @@ static int __init bsg_init(void)
if (ret) if (ret)
goto remove_cdev; goto remove_cdev;
printk(KERN_INFO "%s loaded (major %d)\n", bsg_version, bsg_major); printk(KERN_INFO BSG_DESCRIPTION "version " BSG_VERSION
" loaded (major %d)\n", bsg_major);
return 0; return 0;
remove_cdev: remove_cdev:
printk(KERN_ERR "bsg: failed register scsi interface %d\n", ret); printk(KERN_ERR "bsg: failed register scsi interface %d\n", ret);
...@@ -1087,7 +1089,7 @@ static int __init bsg_init(void) ...@@ -1087,7 +1089,7 @@ static int __init bsg_init(void)
} }
MODULE_AUTHOR("Jens Axboe"); MODULE_AUTHOR("Jens Axboe");
MODULE_DESCRIPTION("Block layer SGSI generic (sg) driver"); MODULE_DESCRIPTION(BSG_DESCRIPTION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
device_initcall(bsg_init); device_initcall(bsg_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册