Commit 1d83d1a2 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding
Browse files

gpu: host1x: Make host1x_client_unregister() return void



This function returned zero unconditionally. Make it return no value and
simplify all callers accordingly.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 22b9442a
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -3268,12 +3268,7 @@ static int tegra_dc_remove(struct platform_device *pdev)
	struct tegra_dc *dc = platform_get_drvdata(pdev);
	int err;

	err = host1x_client_unregister(&dc->client);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
			err);
		return err;
	}
	host1x_client_unregister(&dc->client);

	err = tegra_dc_rgb_remove(dc);
	if (err < 0) {
+1 −7
Original line number Diff line number Diff line
@@ -1662,16 +1662,10 @@ static int tegra_dsi_probe(struct platform_device *pdev)
static int tegra_dsi_remove(struct platform_device *pdev)
{
	struct tegra_dsi *dsi = platform_get_drvdata(pdev);
	int err;

	pm_runtime_disable(&pdev->dev);

	err = host1x_client_unregister(&dsi->client);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
			err);
		return err;
	}
	host1x_client_unregister(&dsi->client);

	tegra_output_remove(&dsi->output);

+1 −7
Original line number Diff line number Diff line
@@ -298,14 +298,8 @@ static int gr2d_probe(struct platform_device *pdev)
static int gr2d_remove(struct platform_device *pdev)
{
	struct gr2d *gr2d = platform_get_drvdata(pdev);
	int err;

	err = host1x_client_unregister(&gr2d->client.base);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
			err);
		return err;
	}
	host1x_client_unregister(&gr2d->client.base);

	return 0;
}
+1 −7
Original line number Diff line number Diff line
@@ -553,14 +553,8 @@ static int gr3d_probe(struct platform_device *pdev)
static int gr3d_remove(struct platform_device *pdev)
{
	struct gr3d *gr3d = platform_get_drvdata(pdev);
	int err;

	err = host1x_client_unregister(&gr3d->client.base);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
			err);
		return err;
	}
	host1x_client_unregister(&gr3d->client.base);

	return 0;
}
+1 −7
Original line number Diff line number Diff line
@@ -1877,14 +1877,8 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
static int tegra_hdmi_remove(struct platform_device *pdev)
{
	struct tegra_hdmi *hdmi = platform_get_drvdata(pdev);
	int err;

	err = host1x_client_unregister(&hdmi->client);
	if (err < 0) {
		dev_err(&pdev->dev, "failed to unregister host1x client: %d\n",
			err);
		return err;
	}
	host1x_client_unregister(&hdmi->client);

	tegra_output_remove(&hdmi->output);

Loading