diff options
Diffstat (limited to 'drivers/net/igbvf/netdev.c')
-rw-r--r-- | drivers/net/igbvf/netdev.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 0dbd0320023a..a6c39209f66f 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c | |||
@@ -2608,11 +2608,7 @@ static void igbvf_print_device_info(struct igbvf_adapter *adapter) | |||
2608 | struct pci_dev *pdev = adapter->pdev; | 2608 | struct pci_dev *pdev = adapter->pdev; |
2609 | 2609 | ||
2610 | dev_info(&pdev->dev, "Intel(R) 82576 Virtual Function\n"); | 2610 | dev_info(&pdev->dev, "Intel(R) 82576 Virtual Function\n"); |
2611 | dev_info(&pdev->dev, "Address: %02x:%02x:%02x:%02x:%02x:%02x\n", | 2611 | dev_info(&pdev->dev, "Address: %pM\n", netdev->dev_addr); |
2612 | /* MAC address */ | ||
2613 | netdev->dev_addr[0], netdev->dev_addr[1], | ||
2614 | netdev->dev_addr[2], netdev->dev_addr[3], | ||
2615 | netdev->dev_addr[4], netdev->dev_addr[5]); | ||
2616 | dev_info(&pdev->dev, "MAC: %d\n", hw->mac.type); | 2612 | dev_info(&pdev->dev, "MAC: %d\n", hw->mac.type); |
2617 | } | 2613 | } |
2618 | 2614 | ||
@@ -2778,11 +2774,8 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, | |||
2778 | memcpy(netdev->perm_addr, adapter->hw.mac.addr, netdev->addr_len); | 2774 | memcpy(netdev->perm_addr, adapter->hw.mac.addr, netdev->addr_len); |
2779 | 2775 | ||
2780 | if (!is_valid_ether_addr(netdev->perm_addr)) { | 2776 | if (!is_valid_ether_addr(netdev->perm_addr)) { |
2781 | dev_err(&pdev->dev, "Invalid MAC Address: " | 2777 | dev_err(&pdev->dev, "Invalid MAC Address: %pM\n", |
2782 | "%02x:%02x:%02x:%02x:%02x:%02x\n", | 2778 | netdev->dev_addr); |
2783 | netdev->dev_addr[0], netdev->dev_addr[1], | ||
2784 | netdev->dev_addr[2], netdev->dev_addr[3], | ||
2785 | netdev->dev_addr[4], netdev->dev_addr[5]); | ||
2786 | err = -EIO; | 2779 | err = -EIO; |
2787 | goto err_hw_init; | 2780 | goto err_hw_init; |
2788 | } | 2781 | } |
@@ -2884,7 +2877,7 @@ static struct pci_error_handlers igbvf_err_handler = { | |||
2884 | .resume = igbvf_io_resume, | 2877 | .resume = igbvf_io_resume, |
2885 | }; | 2878 | }; |
2886 | 2879 | ||
2887 | static struct pci_device_id igbvf_pci_tbl[] = { | 2880 | static DEFINE_PCI_DEVICE_TABLE(igbvf_pci_tbl) = { |
2888 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf }, | 2881 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf }, |
2889 | { } /* terminate list */ | 2882 | { } /* terminate list */ |
2890 | }; | 2883 | }; |