Re: [PATCH v2 1/3] crypto: ccp - Use devres interface to allocate PCI/iomap and cleanup

2017-06-26 Thread Brijesh Singh
On 06/26/2017 04:17 PM, Tom Lendacky wrote: +const struct ccp_vdata ccpv3_platform = { +.version = CCP_VERSION(3, 0), +.setup = NULL, +.perform = _actions, +.bar = 2, Platform devices don't use BARs so should probably delete this (unless you want to make it more generic and

Re: [PATCH v2 1/3] crypto: ccp - Use devres interface to allocate PCI/iomap and cleanup

2017-06-26 Thread Tom Lendacky
On 6/23/2017 11:06 AM, Brijesh Singh wrote: 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 ---