aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/sp-dev.c
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-07-06 10:59:16 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 06:15:54 -0400
commitd0ebbc0c407a10485a8672ef370dfe55c666d57f (patch)
tree618e78c4e3fcda8eed0a295af33c3bd9176daa9e /drivers/crypto/ccp/sp-dev.c
parentf4d18d656f882a7ca558313d5f1b18b1fd01f759 (diff)
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>
Diffstat (limited to 'drivers/crypto/ccp/sp-dev.c')
-rw-r--r--drivers/crypto/ccp/sp-dev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c
index 7e30773443e9..1e5ffad4437b 100644
--- a/drivers/crypto/ccp/sp-dev.c
+++ b/drivers/crypto/ccp/sp-dev.c
@@ -242,13 +242,13 @@ static int __init sp_mod_init(void)
242#ifdef CONFIG_X86 242#ifdef CONFIG_X86
243 int ret; 243 int ret;
244 244
245 ret = ccp_pci_init(); 245 ret = sp_pci_init();
246 if (ret) 246 if (ret)
247 return ret; 247 return ret;
248 248
249 /* Don't leave the driver loaded if init failed */ 249 /* Don't leave the driver loaded if init failed */
250 if (ccp_present() != 0) { 250 if (ccp_present() != 0) {
251 ccp_pci_exit(); 251 sp_pci_exit();
252 return -ENODEV; 252 return -ENODEV;
253 } 253 }
254 254
@@ -258,13 +258,13 @@ static int __init sp_mod_init(void)
258#ifdef CONFIG_ARM64 258#ifdef CONFIG_ARM64
259 int ret; 259 int ret;
260 260
261 ret = ccp_platform_init(); 261 ret = sp_platform_init();
262 if (ret) 262 if (ret)
263 return ret; 263 return ret;
264 264
265 /* Don't leave the driver loaded if init failed */ 265 /* Don't leave the driver loaded if init failed */
266 if (ccp_present() != 0) { 266 if (ccp_present() != 0) {
267 ccp_platform_exit(); 267 sp_platform_exit();
268 return -ENODEV; 268 return -ENODEV;
269 } 269 }
270 270
@@ -277,11 +277,11 @@ static int __init sp_mod_init(void)
277static void __exit sp_mod_exit(void) 277static void __exit sp_mod_exit(void)
278{ 278{
279#ifdef CONFIG_X86 279#ifdef CONFIG_X86
280 ccp_pci_exit(); 280 sp_pci_exit();
281#endif 281#endif
282 282
283#ifdef CONFIG_ARM64 283#ifdef CONFIG_ARM64
284 ccp_platform_exit(); 284 sp_platform_exit();
285#endif 285#endif
286} 286}
287 287