fm10k: remove driver version from fm10k module
Subsystems (2)
PATCH 1/1 fm10k: remove driver version from fm10k module
As with other networking drivers, remove the unnecessary driver version from the fm10k module. The ethtool driver information and module version will then report the kernel version instead.
Signed-off-by Jacob Keller <[email protected]>
--- drivers/net/ethernet/intel/fm10k/fm10k.h | 1 - drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 -- drivers/net/ethernet/intel/fm10k/fm10k_main.c | 5 +---- 3 files changed, 1 insertion(+), 7 deletions(-)
drivers/net/ethernet/intel/fm10k/fm10k.h +0 -1
@@ -476,7 +476,6 @@ struct fm10k_cb {/* main */ extern char fm10k_driver_name[]; -extern const char fm10k_driver_version[];int fm10k_init_queueing_scheme (struct fm10k_intfc *interface);void fm10k_clear_queueing_scheme (struct fm10k_intfc *interface);__be16 fm10k_tx_encap_offload (struct sk_buff *skb);
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +0 -2
@@ -449,8 +449,6 @@ static void fm10k_get_drvinfo(struct net_device *dev,strncpy (info->driver, fm10k_driver_name,sizeof (info->driver) -1 ); -strncpy (info->version, fm10k_driver_version, -sizeof (info->version) -1 );strncpy (info->bus_info,pci_name (interface->pdev),sizeof (info->bus_info) -1 ); }
drivers/net/ethernet/intel/fm10k/fm10k_main.c +1 -4
@@ -11,9 +11,7 @@#include "fm10k.h" -#define DRV_VERSION "0.27.1-k"#define DRV_SUMMARY "Intel(R) Ethernet Switch Host Interface Driver" -const char fm10k_driver_version[] =DRV_VERSION ;char fm10k_driver_name[] ="fm10k" ;static const char fm10k_driver_string[] =DRV_SUMMARY ; static const char fm10k_copyright[] =
@@ -22,7 +20,6 @@ static const char fm10k_copyright[] =MODULE_AUTHOR ("Intel Corporation, <[email protected]>" );MODULE_DESCRIPTION (DRV_SUMMARY );MODULE_LICENSE ("GPL v2" ); -MODULE_VERSION (DRV_VERSION );/* single workqueue for entire fm10k driver */ struct workqueue_struct *fm10k_workqueue;
@@ -35,7 +32,7 @@ struct workqueue_struct *fm10k_workqueue;**/ static int __init fm10k_init_module (void ) { -pr_info ("%s - version %s\n" , fm10k_driver_string, fm10k_driver_version); +pr_info ("%s\n" , fm10k_driver_string);pr_info ("%s\n" , fm10k_copyright);/* create driver workqueue */
Signature · 1 line
2.24.1