tmp: use pdev for parent device in tpm_chip_alloc
authorWinkler, Tomas <tomas.winkler@intel.com>
Wed, 23 Nov 2016 10:04:13 +0000 (12:04 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 23 Jan 2017 16:28:18 +0000 (18:28 +0200)
commit2998b02b2fb58f36ccbc318b00513174e9947d8e
tree3d83e74f8e4ce4c7235cb679a82ce1d1df7d31a7
parent794c6e109b5938da935afde944d1f081e2f51e7d
tmp: use pdev for parent device in tpm_chip_alloc

The tpm stack uses pdev name convention for the parent device.
Fix that also in tpm_chip_alloc().

Fixes: 3897cd9c8d1d ("tpm: Split out the devm stuff from tpmm_chip_alloc")'
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-chip.c