tpm_tis: Fix an error handling path in 'tpm_tis_core_init()'
requested to merge github/fork/linosanfilippo-kunbus/fix/REVPI-1878_fix_tpm_startup_issue into devel/revpi-5.10
Created by: linosanfilippo-kunbus
Commit e96d5282 upstream
Commit 79ca6f74 ("tpm: fix Atmel TPM crash caused by too frequent queries") has moved some code around without updating the error handling path.
This is now pointless to 'goto out_err' when neither 'clk_enable()' nor 'ioremap()' have been called yet.
Make a direct return instead to avoid undoing things that have not been done.
Fixes: 79ca6f74 ("tpm: fix Atmel TPM crash caused by too frequent queries") Signed-off-by: Christophe Jaillet christophe.jaillet@wanadoo.fr Reviewed-by: Jarkko Sakkinen jarkko@kernel.org Signed-off-by: Jarkko Sakkinen jarkko@kernel.org Signed-off-by: Lino Sanfilippo l.sanfilippo@kunbus.com