USB: usbip: remove unneeded MODULE_VERSION() usage

MODULE_VERSION is useless for in-kernel drivers, so just remove all
usage of it in the USB usbip drivers.  Along with this, the
USBIP_VERSION macros was removed as is was also pointless, as well as
printing out the driver version to the syslog at init time, which is not
necessary at all.

Cc: Valentina Manea <valentina.manea.m@gmail.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2017-07-19 14:17:44 +02:00
parent c35c376fb1
commit 0c971edabb
4 changed files with 0 additions and 8 deletions

View File

@ -302,7 +302,6 @@ static int __init usbip_host_init(void)
goto err_create_file; goto err_create_file;
} }
pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
return ret; return ret;
err_create_file: err_create_file:
@ -335,4 +334,3 @@ module_exit(usbip_host_exit);
MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(USBIP_VERSION);

View File

@ -763,7 +763,6 @@ static int __init usbip_core_init(void)
{ {
int ret; int ret;
pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
ret = usbip_init_eh(); ret = usbip_init_eh();
if (ret) if (ret)
return ret; return ret;
@ -783,4 +782,3 @@ module_exit(usbip_core_exit);
MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(USBIP_VERSION);

View File

@ -34,8 +34,6 @@
#include <linux/sched/task.h> #include <linux/sched/task.h>
#include <uapi/linux/usbip.h> #include <uapi/linux/usbip.h>
#define USBIP_VERSION "1.0.0"
#undef pr_fmt #undef pr_fmt
#ifdef DEBUG #ifdef DEBUG

View File

@ -1516,7 +1516,6 @@ static int __init vhci_hcd_init(void)
} }
} }
pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
return ret; return ret;
err_add_hcd: err_add_hcd:
@ -1542,4 +1541,3 @@ module_exit(vhci_hcd_exit);
MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(USBIP_VERSION);