mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
UPSTREAM: gpu: host1x: Make host1x_client_unregister() return void
This function returned zero unconditionally. Make it return no value and simplify all callers accordingly. Bug 4303860 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Thierry Reding <treding@nvidia.com> Change-Id: I07bf696e8af7c3472355b52549fb43ff3987c108 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2986788 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4df331c666
commit
ee866593b7
@@ -527,7 +527,6 @@ unregister_client:
|
||||
static int virt_engine_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct virt_engine *virt_engine = platform_get_drvdata(pdev);
|
||||
int err;
|
||||
#ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK
|
||||
struct tegra_soc_hwpm_ip_ops hwpm_ip_ops;
|
||||
u32 hwpm_ip_index = virt_engine_get_ip_index(pdev->name);
|
||||
@@ -547,12 +546,7 @@ static int virt_engine_remove(struct platform_device *pdev)
|
||||
virt_engine_cleanup_actmon_debugfs(virt_engine);
|
||||
virt_engine_cleanup();
|
||||
|
||||
err = host1x_client_unregister(&virt_engine->client.base);
|
||||
if (err < 0) {
|
||||
dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
|
||||
err);
|
||||
return err;
|
||||
}
|
||||
host1x_client_unregister(&virt_engine->client.base);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user