crypto: ccp - rename ccp driver initialize files as sp device

CCP device initializes is now integerated into higher level SP device,
to avoid the confusion lets rename the ccp driver initialization files
(ccp-platform.c->sp-platform.c, ccp-pci.c->sp-pci.c). The patch does not
make any functional changes other than renaming file and structures

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>
This commit is contained in:
Brijesh Singh
2017-07-06 09:59:16 -05:00
committed by Herbert Xu
parent f4d18d656f
commit d0ebbc0c40
5 changed files with 87 additions and 93 deletions

View File

@@ -242,13 +242,13 @@ static int __init sp_mod_init(void)
#ifdef CONFIG_X86
int ret;
ret = ccp_pci_init();
ret = sp_pci_init();
if (ret)
return ret;
/* Don't leave the driver loaded if init failed */
if (ccp_present() != 0) {
ccp_pci_exit();
sp_pci_exit();
return -ENODEV;
}
@@ -258,13 +258,13 @@ static int __init sp_mod_init(void)
#ifdef CONFIG_ARM64
int ret;
ret = ccp_platform_init();
ret = sp_platform_init();
if (ret)
return ret;
/* Don't leave the driver loaded if init failed */
if (ccp_present() != 0) {
ccp_platform_exit();
sp_platform_exit();
return -ENODEV;
}
@@ -277,11 +277,11 @@ static int __init sp_mod_init(void)
static void __exit sp_mod_exit(void)
{
#ifdef CONFIG_X86
ccp_pci_exit();
sp_pci_exit();
#endif
#ifdef CONFIG_ARM64
ccp_platform_exit();
sp_platform_exit();
#endif
}