Skip to content

Commit

Permalink
tpm: fix format string error in tpm-chip.c
Browse files Browse the repository at this point in the history
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: 313d21e ("tpm: device class for tpm")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
  • Loading branch information
Jarkko Sakkinen authored and Peter Huewe committed Jan 20, 2015
1 parent 9143099 commit 743410a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tpm/tpm-chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 743410a

Please sign in to comment.