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:
Johnny Liu
2023-08-03 14:02:07 +00:00
committed by mobile promotions
parent 8fc898d1ec
commit d171c817ec
4 changed files with 0 additions and 12 deletions

View File

@@ -835,7 +835,6 @@ static int nvdec_probe(struct platform_device *pdev)
exit_falcon: exit_falcon:
falcon_exit(&nvdec->falcon); falcon_exit(&nvdec->falcon);
icc_put(nvdec->icc_write);
return err; return err;
} }
@@ -863,8 +862,6 @@ static int nvdec_remove(struct platform_device *pdev)
falcon_exit(&nvdec->falcon); falcon_exit(&nvdec->falcon);
icc_put(nvdec->icc_write);
return 0; return 0;
} }

View File

@@ -701,7 +701,6 @@ static int nvenc_probe(struct platform_device *pdev)
exit_falcon: exit_falcon:
falcon_exit(&nvenc->falcon); falcon_exit(&nvenc->falcon);
icc_put(nvenc->icc_write);
return err; return err;
} }
@@ -729,8 +728,6 @@ static int nvenc_remove(struct platform_device *pdev)
falcon_exit(&nvenc->falcon); falcon_exit(&nvenc->falcon);
icc_put(nvenc->icc_write);
return 0; return 0;
} }

View File

@@ -688,7 +688,6 @@ static int nvjpg_probe(struct platform_device *pdev)
exit_falcon: exit_falcon:
falcon_exit(&nvjpg->falcon); falcon_exit(&nvjpg->falcon);
icc_put(nvjpg->icc_write);
return err; return err;
} }
@@ -716,8 +715,6 @@ static int nvjpg_remove(struct platform_device *pdev)
falcon_exit(&nvjpg->falcon); falcon_exit(&nvjpg->falcon);
icc_put(nvjpg->icc_write);
return 0; return 0;
} }

View File

@@ -770,7 +770,6 @@ static int vic_probe(struct platform_device *pdev)
exit_falcon: exit_falcon:
falcon_exit(&vic->falcon); falcon_exit(&vic->falcon);
icc_put(vic->icc_write);
return err; return err;
} }
@@ -798,8 +797,6 @@ static int vic_remove(struct platform_device *pdev)
falcon_exit(&vic->falcon); falcon_exit(&vic->falcon);
icc_put(vic->icc_write);
return 0; return 0;
} }