tpm_tis_spi: set default probe function if device id not match
authorLiguang Zhang <zhangliguang@linux.alibaba.com>
Fri, 7 May 2021 14:52:55 +0000 (22:52 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 23 Jun 2021 13:51:03 +0000 (16:51 +0300)
commit114e43371c58992c3ceece219cc359f16314b2c9
tree1407f9732fc032cf6f18dd6b0147ceeb4273627d
parent7937bd532fe6f6342206b3e002bd791bf25085e0
tpm_tis_spi: set default probe function if device id not match

In DSDT table, TPM _CID was SMO0768, and no _HID definition. After a
kernel upgrade from 4.19 to 5.10, TPM probe function was changed which
causes device probe fails. In order to make newer kernel to be
compatible with the older acpi definition, it would be best set default
probe function.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_spi_main.c