From: Brijesh Singh Date: Thu, 6 Jul 2017 14:59:17 +0000 (-0500) Subject: crypto: ccp - remove ccp_present() check from device initialize X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=57de3aefb73fec7cebaf5c6f5f47ef6be4416c12;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Gary R Hook Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c index 1e5ffad4437b..bef387c8abfd 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