diff options
Diffstat (limited to 'drivers/gpu/drm/tegra/hub.c')
| -rw-r--r-- | drivers/gpu/drm/tegra/hub.c | 13 | 
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index b872527a123c..916857361a91 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -1174,17 +1174,12 @@ unregister:  	return err;  } -static int tegra_display_hub_remove(struct platform_device *pdev) +static void tegra_display_hub_remove(struct platform_device *pdev)  {  	struct tegra_display_hub *hub = platform_get_drvdata(pdev);  	unsigned int i; -	int err; -	err = host1x_client_unregister(&hub->client); -	if (err < 0) { -		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n", -			err); -	} +	host1x_client_unregister(&hub->client);  	for (i = 0; i < hub->soc->num_wgrps; i++) {  		struct tegra_windowgroup *wgrp = &hub->wgrps[i]; @@ -1193,8 +1188,6 @@ static int tegra_display_hub_remove(struct platform_device *pdev)  	}  	pm_runtime_disable(&pdev->dev); - -	return err;  }  static const struct tegra_display_hub_soc tegra186_display_hub = { @@ -1226,5 +1219,5 @@ struct platform_driver tegra_display_hub_driver = {  		.of_match_table = tegra_display_hub_of_match,  	},  	.probe = tegra_display_hub_probe, -	.remove = tegra_display_hub_remove, +	.remove_new = tegra_display_hub_remove,  };  |