diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2015-01-20 11:03:35 +0100 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2015-01-20 21:28:36 +0100 |
commit | 743410a03bbf110da8942a715cf1358344ecc281 (patch) | |
tree | 9abd3c040121b275e9ebddc9823ec7f6bf55b9b8 | |
parent | char/tpm/tpm_crb: fix build error (diff) | |
download | linux-743410a03bbf110da8942a715cf1358344ecc281.tar.xz linux-743410a03bbf110da8942a715cf1358344ecc281.zip |
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: 313d21eeab92 ("tpm: device class for tpm")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
-rw-r--r-- | drivers/char/tpm/tpm-chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm-chip.c b/drivers/char/tpm/tpm-chip.c index 6459af7c1646..1d278ccd751f 100644 --- a/drivers/char/tpm/tpm-chip.c +++ b/drivers/char/tpm/tpm-chip.c @@ -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); |