crypto: ccp - Use devres interface to allocate PCI/iomap and cleanup
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 6 Jul 2017 14:59:13 +0000 (09:59 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 09:50:59 +0000 (17:50 +0800)
commit970e8303cb8d6d8e77402345abbdd83862e800ac
tree2bec04857f2902b78ff4f56095f220d22f8a11fe
parenta0a613abe190c96047c63b9147bd1c9d8e96e74f
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>
drivers/crypto/ccp/ccp-dev-v3.c
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-pci.c
drivers/crypto/ccp/ccp-platform.c