mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drm/tegra: Correct icc cleanup logic
Since devm_of_icc_get is used, no need to call icc_put when device probe fails or device driver is removed. Bug 4222919 Signed-off-by: Johnny Liu <johnliu@nvidia.com> Change-Id: Ide313c6f56e1bef83ffe3718cd434abbdaeec869 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2947933 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8fc898d1ec
commit
d171c817ec
@@ -835,7 +835,6 @@ static int nvdec_probe(struct platform_device *pdev)
|
||||
|
||||
exit_falcon:
|
||||
falcon_exit(&nvdec->falcon);
|
||||
icc_put(nvdec->icc_write);
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -863,8 +862,6 @@ static int nvdec_remove(struct platform_device *pdev)
|
||||
|
||||
falcon_exit(&nvdec->falcon);
|
||||
|
||||
icc_put(nvdec->icc_write);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -701,7 +701,6 @@ static int nvenc_probe(struct platform_device *pdev)
|
||||
|
||||
exit_falcon:
|
||||
falcon_exit(&nvenc->falcon);
|
||||
icc_put(nvenc->icc_write);
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -729,8 +728,6 @@ static int nvenc_remove(struct platform_device *pdev)
|
||||
|
||||
falcon_exit(&nvenc->falcon);
|
||||
|
||||
icc_put(nvenc->icc_write);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -688,7 +688,6 @@ static int nvjpg_probe(struct platform_device *pdev)
|
||||
|
||||
exit_falcon:
|
||||
falcon_exit(&nvjpg->falcon);
|
||||
icc_put(nvjpg->icc_write);
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -716,8 +715,6 @@ static int nvjpg_remove(struct platform_device *pdev)
|
||||
|
||||
falcon_exit(&nvjpg->falcon);
|
||||
|
||||
icc_put(nvjpg->icc_write);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -770,7 +770,6 @@ static int vic_probe(struct platform_device *pdev)
|
||||
|
||||
exit_falcon:
|
||||
falcon_exit(&vic->falcon);
|
||||
icc_put(vic->icc_write);
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -798,8 +797,6 @@ static int vic_remove(struct platform_device *pdev)
|
||||
|
||||
falcon_exit(&vic->falcon);
|
||||
|
||||
icc_put(vic->icc_write);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user