tpm_crb: Use IOMEM_ERR_PTR when function returns iomem
authorTian Tao <tiantao6@hisilicon.com>
Thu, 29 Apr 2021 07:39:39 +0000 (15:39 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 23 Jun 2021 13:51:03 +0000 (16:51 +0300)
commit7937bd532fe6f6342206b3e002bd791bf25085e0
treee2ae672ceda3aaaf3ddc77adf2dc0ffa4be0b666
parent0c18f29aae7ce3dadd26d8ee3505d07cc982df75
tpm_crb: Use IOMEM_ERR_PTR when function returns iomem

This is to simplify the code, and IOMEM_ERR_PTR(err) is same with
(__force void __iomem *)ERR_PTR(err).

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_crb.c