From: Brijesh Singh Subject: [PATCH v3 RESEND 5/5] crypto: ccp - remove ccp_present() check from device initialize Date: Thu, 29 Jun 2017 11:54:06 -0500 Message-ID: <20170629165406.13463-6-brijesh.singh@amd.com> References: <20170629165406.13463-1-brijesh.singh@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: gary.hook@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net, Brijesh Singh To: linux-crypto@vger.kernel.org, thomas.lendacky@amd.com Return-path: Received: from mail-sn1nam01on0045.outbound.protection.outlook.com ([104.47.32.45]:61856 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752673AbdF2Qyb (ORCPT ); Thu, 29 Jun 2017 12:54:31 -0400 In-Reply-To: <20170629165406.13463-1-brijesh.singh@amd.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: 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 --- drivers/crypto/ccp/sp-dev.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c index edbf1bd9..a017233 100644 --- a/drivers/crypto/ccp/sp-dev.c +++ b/drivers/crypto/ccp/sp-dev.c @@ -244,12 +244,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 @@ -260,12 +254,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 -- 2.9.4