Commit f6ebfd78 authored by Gary R Hook's avatar Gary R Hook Committed by Herbert Xu

crypto: ccp - Log an error message when ccp-crypto fails to load

If there are no CCP devices on the system, ccp-crypto will not load.
Write a message to the system log clarifying the reason for the failure
of the modprobe operation
Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e88b27c8
...@@ -405,8 +405,10 @@ static int ccp_crypto_init(void) ...@@ -405,8 +405,10 @@ static int ccp_crypto_init(void)
int ret; int ret;
ret = ccp_present(); ret = ccp_present();
if (ret) if (ret) {
pr_err("Cannot load: there are no available CCPs\n");
return ret; return ret;
}
spin_lock_init(&req_queue_lock); spin_lock_init(&req_queue_lock);
INIT_LIST_HEAD(&req_queue.cmds); INIT_LIST_HEAD(&req_queue.cmds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment