Commit 0129249d authored by Hans de Goede's avatar Hans de Goede Committed by jiayingbao
Browse files

platform/x86/intel: vsec: Use intel_vsec_dev_release() to simplify init() error cleanup

mainline inclusion
from mainline-v6.4-rc1
commit 6f561677
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WOEC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6f561677c2f234bcf215350b76f2a2fea95fbebf



-------------------------------------

On auxiliary_device_init(auxdev) failure we need to do the exact same
cleanup steps as on device.release(), so use the intel_vsec_dev_release()
callback for this.

Intel-SIG: commit 6f561677 platform/x86/intel: vsec: Use intel_vsec_dev_release()
to simplify init() error cleanup.
Backport Intel_vsec bus update as TPMI driver dependency.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230320103815.229729-1-hdegoede@redhat.com


[ Yingbao Jia: amend commit log ]
Signed-off-by: default avatarYingbao Jia <yingbao.jia@intel.com>
parent ab1a3aed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment