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)
commitf77af15165847406b15d8f70c382c4cb15846b2a
tree4941098b00f641bfe02658b9204f7cd00e05e52b
parentb4b8cbf679c4866a523a35d1454884a31bd5d8dc
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: 74d6b3ceaa17 ("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