gpu: host1x: Make host1x_actmon_unregister() return void

The function host1x_actmon_unregister() never fails and so never returns
an error. Make this function return void to simplify the code.

Bug 4303860

Change-Id: I9e1cd403bd6db8e2d4ac6831ed26e1436638456f
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2986789
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-09-27 13:13:43 +01:00
committed by mobile promotions
parent ee866593b7
commit 07dbfa8de1
6 changed files with 8 additions and 26 deletions

View File

@@ -859,16 +859,12 @@ exit_falcon:
static int nvdec_remove(struct platform_device *pdev)
{
struct nvdec *nvdec = platform_get_drvdata(pdev);
int err;
pm_runtime_disable(&pdev->dev);
nvdec_devfreq_deinit(nvdec);
err = host1x_actmon_unregister(&nvdec->client.base);
if (err < 0)
dev_info(&pdev->dev, "failed to unregister host1x actmon: %d\n",
err);
host1x_actmon_unregister(&nvdec->client.base);
host1x_client_unregister(&nvdec->client.base);