diff --git a/drivers/crypto/hisilicon/hpre/hpre_main.c b/drivers/crypto/hisilicon/hpre/hpre_main.c index 38fabcca09fa0cb9a1427ae27925e81f540084cc..381b911797f14b7344051c5119455657c69b1908 100644 --- a/drivers/crypto/hisilicon/hpre/hpre_main.c +++ b/drivers/crypto/hisilicon/hpre/hpre_main.c @@ -866,6 +866,8 @@ static int hpre_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (!hpre) return -ENOMEM; pci_set_drvdata(pdev, hpre); + if (pci_enable_device(pdev) < 0) + return -ENODEV; qm = &hpre->qm; ret = hpre_qm_pre_init(qm, pdev); if (ret)