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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:27 +0000 (15:21 +0200)
commit5a58005763c3e66468814706eeb79999525a6cf5
tree4c4478623bfdc7e1e17a738e574469c7a5f651f5
parent30131b1fa0916a5bf9bcae5e53c5b46b8ee909cf
tpm_crb: drop struct resource res from struct crb_priv

commit 14ddfbf488a0223b19abf7e4634e6e676a91a12d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_crb.c