mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
vdieo: rockchip: mpp: fix av1d iommu compile warning
drivers/video/rockchip/mpp/mpp_iommu_av1d.c:911 av1_iommu_probe() warn: missing unwind goto? Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com> Change-Id: Ia3ae5df50fa9d5ca7df84547b9b31d3ecd229922
This commit is contained in:
@@ -907,18 +907,22 @@ static int av1_iommu_probe(struct platform_device *pdev)
|
||||
for (i = 0; i < iommu->num_irq; i++) {
|
||||
int irq = platform_get_irq(pdev, i);
|
||||
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
if (irq < 0) {
|
||||
err = -ENODEV;
|
||||
goto err_diable_runtime;
|
||||
}
|
||||
|
||||
err = devm_request_irq(iommu->dev, irq, av1_iommu_irq,
|
||||
IRQF_SHARED, dev_name(dev), iommu);
|
||||
if (err) {
|
||||
pm_runtime_disable(dev);
|
||||
goto err_remove_sysfs;
|
||||
}
|
||||
if (err)
|
||||
goto err_diable_runtime;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
err_diable_runtime:
|
||||
pm_runtime_disable(dev);
|
||||
iommu_device_unregister(&iommu->iommu);
|
||||
err_remove_sysfs:
|
||||
iommu_device_sysfs_remove(&iommu->iommu);
|
||||
err_put_group:
|
||||
|
||||
Reference in New Issue
Block a user