crypto: cavium/nitrox - add an error message to explain the failure of pci_request_me...
authorGeorge Acosta <acostag.ubuntu@gmail.com>
Fri, 21 Aug 2020 03:12:08 +0000 (22:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Aug 2020 06:58:29 +0000 (16:58 +1000)
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>
drivers/crypto/cavium/nitrox/nitrox_main.c

index cee2a27..9d14be9 100644 (file)
@@ -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);