mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/tegra: rgb: Make tegra_dc_rgb_remove() return void
This function returned zero unconditionally. Make it return no value and simplify all callers accordingly. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
committed by
Thierry Reding
parent
55879dad0f
commit
437405403a
@@ -3266,15 +3266,10 @@ disable_pm:
|
||||
static int tegra_dc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct tegra_dc *dc = platform_get_drvdata(pdev);
|
||||
int err;
|
||||
|
||||
host1x_client_unregister(&dc->client);
|
||||
|
||||
err = tegra_dc_rgb_remove(dc);
|
||||
if (err < 0) {
|
||||
dev_err(&pdev->dev, "failed to remove RGB output: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
tegra_dc_rgb_remove(dc);
|
||||
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user