tpm_crb: drop struct resource res from struct crb_priv
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 15 Mar 2016 19:41:40 +0000 (21:41 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
commit14ddfbf488a0223b19abf7e4634e6e676a91a12d
treefa6a433b12051b83311e672a710d674790ea0d67
parentdcbeab194645486dc482b49b44ef5b8634153034
tpm_crb: drop struct resource res from struct crb_priv

The iomem resource is needed only temporarily so it is better to pass
it on instead of storing it permanently. Named the variable as io_res
so that the code better documents itself.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
drivers/char/tpm/tpm_crb.c