]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: ccp - CCP device enabled/disabled changes
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 6 Jan 2014 19:34:29 +0000 (13:34 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jan 2014 03:33:40 +0000 (11:33 +0800)
commitdb34cf9122319d6fed59bd3ba26fa099a8ece432
treed161399362984611892d5f42cbe7f186547b9944
parent82d1585b9a9d5106ec6a630696f3e2e532fc3cba
crypto: ccp - CCP device enabled/disabled changes

The CCP cannot be hot-plugged so it will either be there
or it won't.  Do not allow the driver to stay loaded if the
CCP does not successfully initialize.

Provide stub routines in the ccp.h file that return -ENODEV
if the CCP has not been configured in the build.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-pci.c
include/linux/ccp.h