summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorGeorge Acosta <acostag.ubuntu@gmail.com>2020-08-21 06:12:08 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-28 09:58:29 +0300
commit9fcddaf2e28d779cb946d23838ba6d50f299aa80 (patch)
treee46203cabd989f39897cc6244e37570d37ebf469 /drivers/crypto
parentea066b7a3ddf1e4e5ae749495f0adf12766188b4 (diff)
downloadlinux-9fcddaf2e28d779cb946d23838ba6d50f299aa80.tar.xz
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: George Acosta <acostag.ubuntu@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/cavium/nitrox/nitrox_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_main.c b/drivers/crypto/cavium/nitrox/nitrox_main.c
index cee2a2713038..9d14be97e381 100644
--- a/drivers/crypto/cavium/nitrox/nitrox_main.c
+++ b/drivers/crypto/cavium/nitrox/nitrox_main.c
@@ -451,6 +451,7 @@ static int nitrox_probe(struct pci_dev *pdev,
err = pci_request_mem_regions(pdev, nitrox_driver_name);
if (err) {
pci_disable_device(pdev);
+ dev_err(&pdev->dev, "Failed to request mem regions!\n");
return err;
}
pci_set_master(pdev);