aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igbvf/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf/netdev.c')
-rw-r--r--drivers/net/ethernet/intel/igbvf/netdev.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c
index cca78124be31..c358973ce414 100644
--- a/drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/drivers/net/ethernet/intel/igbvf/netdev.c
@@ -25,6 +25,8 @@
25 25
26*******************************************************************************/ 26*******************************************************************************/
27 27
28#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
29
28#include <linux/module.h> 30#include <linux/module.h>
29#include <linux/types.h> 31#include <linux/types.h>
30#include <linux/init.h> 32#include <linux/init.h>
@@ -1746,10 +1748,9 @@ void igbvf_update_stats(struct igbvf_adapter *adapter)
1746 1748
1747static void igbvf_print_link_info(struct igbvf_adapter *adapter) 1749static void igbvf_print_link_info(struct igbvf_adapter *adapter)
1748{ 1750{
1749 dev_info(&adapter->pdev->dev, "Link is Up %d Mbps %s\n", 1751 dev_info(&adapter->pdev->dev, "Link is Up %d Mbps %s Duplex\n",
1750 adapter->link_speed, 1752 adapter->link_speed,
1751 ((adapter->link_duplex == FULL_DUPLEX) ? 1753 adapter->link_duplex == FULL_DUPLEX ? "Full" : "Half");
1752 "Full Duplex" : "Half Duplex"));
1753} 1754}
1754 1755
1755static bool igbvf_has_link(struct igbvf_adapter *adapter) 1756static bool igbvf_has_link(struct igbvf_adapter *adapter)
@@ -2532,7 +2533,8 @@ static void igbvf_print_device_info(struct igbvf_adapter *adapter)
2532 dev_info(&pdev->dev, "Address: %pM\n", netdev->dev_addr); 2533 dev_info(&pdev->dev, "Address: %pM\n", netdev->dev_addr);
2533} 2534}
2534 2535
2535static int igbvf_set_features(struct net_device *netdev, u32 features) 2536static int igbvf_set_features(struct net_device *netdev,
2537 netdev_features_t features)
2536{ 2538{
2537 struct igbvf_adapter *adapter = netdev_priv(netdev); 2539 struct igbvf_adapter *adapter = netdev_priv(netdev);
2538 2540
@@ -2842,9 +2844,8 @@ static struct pci_driver igbvf_driver = {
2842static int __init igbvf_init_module(void) 2844static int __init igbvf_init_module(void)
2843{ 2845{
2844 int ret; 2846 int ret;
2845 printk(KERN_INFO "%s - version %s\n", 2847 pr_info("%s - version %s\n", igbvf_driver_string, igbvf_driver_version);
2846 igbvf_driver_string, igbvf_driver_version); 2848 pr_info("%s\n", igbvf_copyright);
2847 printk(KERN_INFO "%s\n", igbvf_copyright);
2848 2849
2849 ret = pci_register_driver(&igbvf_driver); 2850 ret = pci_register_driver(&igbvf_driver);
2850 2851