Skip to content
Commit 249c9dc6 authored by Amey Narkhede's avatar Amey Narkhede Committed by Will Deacon
Browse files

iommu/arm: Cleanup resources in case of probe error path



If device registration fails, remove sysfs attribute
and if setting bus callbacks fails, unregister the device
and cleanup the sysfs attribute.

Signed-off-by: default avatarAmey Narkhede <ameynarkhede03@gmail.com>
Link: https://lore.kernel.org/r/20210608164559.204023-1-ameynarkhede03@gmail.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ab9a77a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment