Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 743410a0 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen Committed by Peter Huewe
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: 313d21ee ("tpm: device class for tpm")
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
parent 91430999
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);