diff options
author | Amey Narkhede <ameynarkhede03@gmail.com> | 2021-06-08 19:45:59 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-06-08 19:53:13 +0300 |
commit | 249c9dc6aa0db74a0f7908efd04acf774e19b155 (patch) | |
tree | c3231d0ab16b168c08951ab6b289987b9256133f /drivers/regulator/fan53880.c | |
parent | ab9a77a141cc14ed607b4bf7a83ab6b0057ae084 (diff) | |
download | linux-249c9dc6aa0db74a0f7908efd04acf774e19b155.tar.xz |
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: Amey Narkhede <ameynarkhede03@gmail.com>
Link: https://lore.kernel.org/r/20210608164559.204023-1-ameynarkhede03@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/regulator/fan53880.c')
0 files changed, 0 insertions, 0 deletions