summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-dev-v3.c
diff options
context:
space:
mode:
authorBrijesh Singh2017-07-06 16:59:13 +0200
committerHerbert Xu2017-07-18 11:50:59 +0200
commit970e8303cb8d6d8e77402345abbdd83862e800ac (patch)
tree2bec04857f2902b78ff4f56095f220d22f8a11fe /drivers/crypto/ccp/ccp-dev-v3.c
parentMAINTAINERS: add a maintainer for Microchip / Atmel ECC driver (diff)
downloadkernel-qcow2-linux-970e8303cb8d6d8e77402345abbdd83862e800ac.tar.gz
kernel-qcow2-linux-970e8303cb8d6d8e77402345abbdd83862e800ac.tar.xz
kernel-qcow2-linux-970e8303cb8d6d8e77402345abbdd83862e800ac.zip
crypto: ccp - Use devres interface to allocate PCI/iomap and cleanup
Update pci and platform files to use devres interface to allocate the PCI and iomap resources. Also add helper functions to consolicate module init, exit and power mangagement code duplication. 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/ccp-dev-v3.c')
-rw-r--r--drivers/crypto/ccp/ccp-dev-v3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v3.c b/drivers/crypto/ccp/ccp-dev-v3.c
index 367c2e30656f..52aa88ba13a5 100644
--- a/drivers/crypto/ccp/ccp-dev-v3.c
+++ b/drivers/crypto/ccp/ccp-dev-v3.c
@@ -586,6 +586,13 @@ static const struct ccp_actions ccp3_actions = {
.irqhandler = ccp_irq_handler,
};
+const struct ccp_vdata ccpv3_platform = {
+ .version = CCP_VERSION(3, 0),
+ .setup = NULL,
+ .perform = &ccp3_actions,
+ .offset = 0,
+};
+
const struct ccp_vdata ccpv3 = {
.version = CCP_VERSION(3, 0),
.setup = NULL,