]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fbbf2e091dc41ff48630c335175ceb02115c356
tree2bec04857f2902b78ff4f56095f220d22f8a11fe
parent99720d8e57707f4f8fd04f3eb7702db1ada94369
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