OSDN Git Service

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:00:13 +0000 (14:00 +0200)
commit819e3601d3c5e483d8c42839a2acfbfb2eafe784
treea44e57e6c201e3266da1d18c0f6a484e484dcfe9
parent326f9b0a39d3a27221dafc46e9862c7a1aa8fb19
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