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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:08:19 +0000 (14:08 +0200)
commit93bb6661baf0467dc9db2d2a8ef6cf92131977b6
treebda19095c561402f6adc745272f2b755b94a0d42
parentc6131528430987246a2bc3f4244b2e001493cfd3
tmp: use pdev for parent device in tpm_chip_alloc

commit 2998b02b2fb58f36ccbc318b00513174e9947d8e upstream.

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