crypto: hisilicon/sec - Add the condition for configuring the sriov function
authorChenghai Huang <huangchenghai2@huawei.com>
Sun, 7 Apr 2024 07:59:52 +0000 (15:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:52 +0000 (15:07 +0800)
commit5307147b5e2342b96cd1f1eb19e47e8d2c6c1428
treea68207eed9ff313fc3c73d3a7860245a312fe215
parent6a24fdfe1edbafacdacd53516654d99068f20eec
crypto: hisilicon/sec - Add the condition for configuring the sriov function

When CONFIG_PCI_IOV is disabled, the SRIOV configuration
function is not required. An error occurs if this function is
incorrectly called.

Consistent with other modules, add the condition for
configuring the sriov function of sec_pci_driver.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_main.c