]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
USB: usbip: remove unneeded MODULE_VERSION() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2017 12:17:44 +0000 (14:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jul 2017 13:56:53 +0000 (15:56 +0200)
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>
drivers/usb/usbip/stub_main.c
drivers/usb/usbip/usbip_common.c
drivers/usb/usbip/usbip_common.h
drivers/usb/usbip/vhci_hcd.c

index 660180a5d5c441fc96b3451954daf247095d7094..7170404e897983bd42219daf6609a980ffed73b2 100644 (file)
@@ -302,7 +302,6 @@ static int __init usbip_host_init(void)
                goto err_create_file;
        }
 
-       pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
        return ret;
 
 err_create_file:
@@ -335,4 +334,3 @@ module_exit(usbip_host_exit);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
-MODULE_VERSION(USBIP_VERSION);
index cab2b71a80d02737ed30b76b40576a51a6201a4a..2281f3562870a07edc3a95b0e370d9c4e14af019 100644 (file)
@@ -763,7 +763,6 @@ static int __init usbip_core_init(void)
 {
        int ret;
 
-       pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
        ret = usbip_init_eh();
        if (ret)
                return ret;
@@ -783,4 +782,3 @@ module_exit(usbip_core_exit);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
-MODULE_VERSION(USBIP_VERSION);
index f8573a52e41a56b1f693757b3ef631f013d46123..3050fc99a417b5ec7b1d0fba580b421c7861f44e 100644 (file)
@@ -34,8 +34,6 @@
 #include <linux/sched/task.h>
 #include <uapi/linux/usbip.h>
 
-#define USBIP_VERSION "1.0.0"
-
 #undef pr_fmt
 
 #ifdef DEBUG
index 2c4b2fd4040617a7583ccdb92d0cbbb05aaf5164..c747623990dadbd75630bdb41601e7c940815e25 100644 (file)
@@ -1516,7 +1516,6 @@ static int __init vhci_hcd_init(void)
                }
        }
 
-       pr_info(DRIVER_DESC " v" USBIP_VERSION "\n");
        return ret;
 
 err_add_hcd:
@@ -1542,4 +1541,3 @@ module_exit(vhci_hcd_exit);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
-MODULE_VERSION(USBIP_VERSION);