diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-06-23 22:31:00 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-08-29 10:31:03 +0200 |
commit | 76ef0fc5a7519690a6a87a248f5709463f584292 (patch) | |
tree | a839a9561e8476723e6dd08ff689bf04b52be42e /drivers/net/ethernet/intel/fm10k | |
parent | fm10k: NAPI polling routine must return actual work done (diff) | |
download | linux-76ef0fc5a7519690a6a87a248f5709463f584292.tar.xz linux-76ef0fc5a7519690a6a87a248f5709463f584292.zip |
fm10k: print error code when pci_enable_device_mem fails during probe
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k')
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c index 11b29552f664..e5f37b788196 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c @@ -1951,8 +1951,11 @@ static int fm10k_probe(struct pci_dev *pdev, const struct pci_device_id *ent) int err; err = pci_enable_device_mem(pdev); - if (err) + if (err) { + dev_err(&pdev->dev, + "PCI enable device failed: %d\n", err); return err; + } err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); if (err) |