mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
tpm: fix format string error in tpm-chip.c
dev_set_name() takes three arguments where the second argument is
a format string. This patch fixes the call accordingly in tpm-chip.c
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 313d21eeab ("tpm: device class for tpm")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
This commit is contained in:
parent
914309995e
commit
743410a03b
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ struct tpm_chip *tpmm_chip_alloc(struct device *dev,
|
|||
else
|
||||
chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num);
|
||||
|
||||
dev_set_name(&chip->dev, chip->devname);
|
||||
dev_set_name(&chip->dev, "%s", chip->devname);
|
||||
|
||||
device_initialize(&chip->dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue