提交 743410a0 编写于 作者: J Jarkko Sakkinen 提交者: Peter Huewe

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: Nkbuild test robot <fengguang.wu@intel.com>
Fixes: 313d21ee ("tpm: device class for tpm")
Signed-off-by: NJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
上级 91430999
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册