Re: [PATCH] iommu/qcom: Cleanup resources in case of probe error path

2021-06-08 Thread Amey Narkhede
On 21/06/08 10:29AM, Will Deacon wrote: > On Thu, Apr 22, 2021 at 03:40:30AM +0530, Amey Narkhede wrote: > > 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

Re: [PATCH] iommu/qcom: Cleanup resources in case of probe error path

2021-06-08 Thread Will Deacon
On Thu, Apr 22, 2021 at 03:40:30AM +0530, Amey Narkhede wrote: > 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 > --- > drivers/iommu/arm/arm-smmu/qcom_iommu.c |

[PATCH] iommu/qcom: Cleanup resources in case of probe error path

2021-04-21 Thread Amey Narkhede
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 --- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --g