diff options
author | Rajiv Andrade <srajiv@linux.vnet.ibm.com> | 2008-10-10 22:04:39 (GMT) |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-10-10 22:04:39 (GMT) |
commit | 253115b71fa06330bd58afbe01ccaf763a8a0cf1 (patch) | |
tree | 5b2ce62ca88fa461f7d3466361b8c4599ea82ea0 /drivers/char/tpm/tpm.h | |
parent | f02a93645e6200a9da0f26dac8ced28c612f5e86 (diff) | |
download | linux-fsl-qoriq-253115b71fa06330bd58afbe01ccaf763a8a0cf1.tar.xz |
The tpm_dev_release function is only called for platform devices, not pnp
devices, so we implemented the .remove function for pnp ones. Since it's
code is very similar to the one inside tpm_dev_release, we've created a
helper function tpm_dev_vendor_release, which is called by both.
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Cc: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 2756cab..8e30df4 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -132,6 +132,7 @@ extern struct tpm_chip* tpm_register_hardware(struct device *, const struct tpm_vendor_specific *); extern int tpm_open(struct inode *, struct file *); extern int tpm_release(struct inode *, struct file *); +extern void tpm_dev_vendor_release(struct tpm_chip *); extern ssize_t tpm_write(struct file *, const char __user *, size_t, loff_t *); extern ssize_t tpm_read(struct file *, char __user *, size_t, loff_t *); |