]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/char/tpm/tpm.h
Merge branch 'master' into tk71
[mv-sheeva.git] / drivers / char / tpm / tpm.h
index 792868d24f2a0f2ad6bc21a4967ace01a2f84d92..72ddb031b69a24e425a22d5892283b91f6cc1eec 100644 (file)
@@ -113,6 +113,11 @@ struct tpm_chip {
 
 #define to_tpm_chip(n) container_of(n, struct tpm_chip, vendor)
 
+static inline void tpm_chip_put(struct tpm_chip *chip)
+{
+       module_put(chip->dev->driver->owner);
+}
+
 static inline int tpm_read_index(int base, int index)
 {
        outb(index, base);