Revert "CHROMIUM: tpm: move shutdown logic from common code"

This reverts commit e271357955284f5cdff4304817b0de405f97099d.

The patch caused kernel panic on reboot and shutdown.

[  464.379733] BUG: unable to handle kernel NULL pointer dereference at 0000000000000048
[  464.379748] IP: tpm_transmit+0x209/0x4d1

Panic is at /src/third_party/kernel/v4.14/drivers/char/tpm/tpm-interface.c:451

        if (chip->ops->clk_enable != NULL)

TEST=verify there is no kernel panic on reboot and shutdown

Change-Id: Ia91be7f7111b46adb0801cf194b5934e7ef7a952
Signed-off-by: Wenkai Du <>
Commit-Ready: Justin TerAvest <>
Tested-by: Justin TerAvest <>
Reviewed-by: Justin TerAvest <>
3 files changed