diff options
author | George Acosta <acostag.ubuntu@gmail.com> | 2020-08-21 05:12:08 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-08-28 08:58:29 +0200 |
commit | 9fcddaf2e28d779cb946d23838ba6d50f299aa80 (patch) | |
tree | e46203cabd989f39897cc6244e37570d37ebf469 /drivers/crypto/cavium | |
parent | crypto: sa2ul - Fix pointer-to-int-cast warning (diff) | |
download | linux-9fcddaf2e28d779cb946d23838ba6d50f299aa80.tar.xz linux-9fcddaf2e28d779cb946d23838ba6d50f299aa80.zip |
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/cavium')
-rw-r--r-- | drivers/crypto/cavium/nitrox/nitrox_main.c | 1 |
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); |