Commit 9fcddaf2 authored by George Acosta's avatar George Acosta Committed by Herbert Xu

crypto: cavium/nitrox - add an error message to explain the failure of pci_request_mem_regions

Provide an error message for users when pci_request_mem_regions failed.
Signed-off-by: default avatarGeorge Acosta <acostag.ubuntu@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ea066b7a
...@@ -451,6 +451,7 @@ static int nitrox_probe(struct pci_dev *pdev, ...@@ -451,6 +451,7 @@ static int nitrox_probe(struct pci_dev *pdev,
err = pci_request_mem_regions(pdev, nitrox_driver_name); err = pci_request_mem_regions(pdev, nitrox_driver_name);
if (err) { if (err) {
pci_disable_device(pdev); pci_disable_device(pdev);
dev_err(&pdev->dev, "Failed to request mem regions!\n");
return err; return err;
} }
pci_set_master(pdev); pci_set_master(pdev);
......
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