]> git.baikalelectronics.ru Git - kernel.git/commit
Add "shutdown" to "struct class".
authorJosh Zimmerman <joshz@google.com>
Sun, 25 Jun 2017 21:53:23 +0000 (14:53 -0700)
committerJames Morris <james.l.morris@oracle.com>
Thu, 6 Jul 2017 23:49:24 +0000 (09:49 +1000)
commit21cd0525614d3b413a95d6ed0814f2662c4396ab
tree4941098b00f641bfe02658b9204f7cd00e05e52b
parent3edc5573df0b9fcacc12272eec0f9f4440a48a99
Add "shutdown" to "struct class".

The TPM class has some common shutdown code that must be executed for
all drivers. This adds some needed functionality for that.

Signed-off-by: Josh Zimmerman <joshz@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org
Fixes: 9ac40e865034 ("tpm: fix suspend/resume paths for TPM 2.0")
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/base/core.c
include/linux/device.h