diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2016-01-08 00:36:23 (GMT) |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2016-02-10 02:11:33 (GMT) |
commit | 51dd43dff74b0547ad844638f6910ca29c956819 (patch) | |
tree | 4125f98506a266d67cb1607aa47ad2d0d2383961 /drivers/extcon | |
parent | 4d627e672bd0e8af4e734fef93e806499d1e1277 (diff) | |
download | linux-51dd43dff74b0547ad844638f6910ca29c956819.tar.xz |
tpm_tis: Use devm_ioremap_resource
This does a request_resource under the covers which means tis holds a
lock on the memory range it is using so other drivers cannot grab it.
When doing probing it is important to ensure that other drivers are
not using the same range before tis starts touching it.
To do this flow the actual struct resource from the device right
through to devm_ioremap_resource. This ensures all the proper resource
meta-data is carried down.
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Wilck, Martin <martin.wilck@ts.fujitsu.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions