OSDN Git Service

crypto: ccp - remove ccp_present() check from device initialize
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 6 Jul 2017 14:59:17 +0000 (09:59 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 10:15:55 +0000 (18:15 +0800)
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>
drivers/crypto/ccp/sp-dev.c

index 1e5ffad..bef387c 100644 (file)
@@ -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