aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r--drivers/char/tpm/tpm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index 3409acf953f3..adf6af835329 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -103,7 +103,7 @@ enum tpm_chip_flags {
103}; 103};
104 104
105struct tpm_chip { 105struct tpm_chip {
106 struct device *dev; /* Device stuff */ 106 struct device *pdev; /* Device stuff */
107 const struct tpm_class_ops *ops; 107 const struct tpm_class_ops *ops;
108 unsigned int flags; 108 unsigned int flags;
109 109
@@ -130,7 +130,7 @@ struct tpm_chip {
130 130
131static inline void tpm_chip_put(struct tpm_chip *chip) 131static inline void tpm_chip_put(struct tpm_chip *chip)
132{ 132{
133 module_put(chip->dev->driver->owner); 133 module_put(chip->pdev->driver->owner);
134} 134}
135 135
136static inline int tpm_read_index(int base, int index) 136static inline int tpm_read_index(int base, int index)