You need to sign in or sign up before continuing.
提交 57de3aef 编写于 作者: B Brijesh Singh 提交者: Herbert Xu

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: NBrijesh Singh <brijesh.singh@amd.com>
Acked-by: NGary R Hook <gary.hook@amd.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 d0ebbc0c
...@@ -246,12 +246,6 @@ static int __init sp_mod_init(void) ...@@ -246,12 +246,6 @@ static int __init sp_mod_init(void)
if (ret) if (ret)
return ret; return ret;
/* Don't leave the driver loaded if init failed */
if (ccp_present() != 0) {
sp_pci_exit();
return -ENODEV;
}
return 0; return 0;
#endif #endif
...@@ -262,12 +256,6 @@ static int __init sp_mod_init(void) ...@@ -262,12 +256,6 @@ static int __init sp_mod_init(void)
if (ret) if (ret)
return ret; return ret;
/* Don't leave the driver loaded if init failed */
if (ccp_present() != 0) {
sp_platform_exit();
return -ENODEV;
}
return 0; return 0;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册