summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-07-06 09:59:17 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 18:15:55 +0800
commit57de3aefb73fec7cebaf5c6f5f47ef6be4416c12 (patch)
tree9fd5c82fbb02cbff9cc1d233b8c4b0d94ced296a /drivers/crypto/ccp
parentd0ebbc0c407a10485a8672ef370dfe55c666d57f (diff)
downloadop-kernel-dev-57de3aefb73fec7cebaf5c6f5f47ef6be4416c12.zip
op-kernel-dev-57de3aefb73fec7cebaf5c6f5f47ef6be4416c12.tar.gz
crypto: ccp - remove ccp_present() check from device initialize
Since SP device driver supports multiples devices (e.g CCP, PSP), we should not fail the driver init just because CCP device is not found. Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Acked-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp')
-rw-r--r--drivers/crypto/ccp/sp-dev.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c
index 1e5ffad..bef387c8 100644
--- a/drivers/crypto/ccp/sp-dev.c
+++ b/drivers/crypto/ccp/sp-dev.c
@@ -246,12 +246,6 @@ static int __init sp_mod_init(void)
if (ret)
return ret;
- /* Don't leave the driver loaded if init failed */
- if (ccp_present() != 0) {
- sp_pci_exit();
- return -ENODEV;
- }
-
return 0;
#endif
@@ -262,12 +256,6 @@ static int __init sp_mod_init(void)
if (ret)
return ret;
- /* Don't leave the driver loaded if init failed */
- if (ccp_present() != 0) {
- sp_platform_exit();
- return -ENODEV;
- }
-
return 0;
#endif
OpenPOWER on IntegriCloud