Commit 76ef0fc5 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

fm10k: print error code when pci_enable_device_mem fails during probe

Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarKrishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e5fbfb78
...@@ -1951,8 +1951,11 @@ static int fm10k_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1951,8 +1951,11 @@ static int fm10k_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
int err; int err;
err = pci_enable_device_mem(pdev); err = pci_enable_device_mem(pdev);
if (err) if (err) {
dev_err(&pdev->dev,
"PCI enable device failed: %d\n", err);
return err; return err;
}
err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48));
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment