tpm: cr50: Release locality on exit
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 22:57:22 +0000 (16:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commit79b7ade5b5b84cb3bfe6f5546885b8f3f8f8baf1
tree21b462cdab046ceeef09ce9966e8b7bcf1e180a8
parentb14ccfcf091f6d8f075043569b28ab385f5a481f
tpm: cr50: Release locality on exit

At present the cr50 driver claims the locality and does not release it for
Linux. This causes problems. Fix this by tracking what is claimed, and
adding a 'remove' method.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/tpm/cr50_i2c.c