]> git.baikalelectronics.ru Git - kernel.git/commit
The tpm_dev_release function is only called for platform devices, not pnp
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Fri, 10 Oct 2008 22:04:39 +0000 (09:04 +1100)
committerJames Morris <jmorris@namei.org>
Fri, 10 Oct 2008 22:04:39 +0000 (09:04 +1100)
commit68e5ea83341d24148dc9a0755b356180cb048a95
tree5b2ce62ca88fa461f7d3466361b8c4599ea82ea0
parentf627868c08f5f954e93887613c7a0d274b9cc647
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>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_tis.c