]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Remove redundant dev_set_drvdata
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Sat, 5 Oct 2013 17:40:19 +0000 (11:40 -0600)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 22 Oct 2013 17:42:35 +0000 (19:42 +0200)
commit218cede9a4937abd6cf1dc27e5c4efaef1e11697
tree7d86946113fb9c444e1f50583515181b92c7f11e
parent2b09496f9976efc56be4b34a4a07a97a68c1db7b
tpm: Remove redundant dev_set_drvdata

TPM drivers should not call dev_set_drvdata (or aliases), only the core
code is allowed to call dev_set_drvdata, and it does it during
tpm_register_hardware.

These extra sets are harmless, but are an anti-pattern that many drivers
have copied.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Ashley Lai <adlai@linux.vnet.ibm.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_infineon.c
drivers/char/tpm/tpm_i2c_stm_st33.c
drivers/char/tpm/xen-tpmfront.c