diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-19 15:55:08 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 10:14:49 +0100 |
commit | 328ec69e7f9e7192c3f7653a5ec46d6e9a5fe60d (patch) | |
tree | 3843a5707acfdffd7affd56cc570bba3c757de98 /drivers/gpu/drm/tegra/output.c | |
parent | drm/tegra: Remove remnants of the output midlayer (diff) | |
download | linux-328ec69e7f9e7192c3f7653a5ec46d6e9a5fe60d.tar.xz linux-328ec69e7f9e7192c3f7653a5ec46d6e9a5fe60d.zip |
drm/tegra: Output cleanup functions cannot fail
The tegra_output_exit() and tegra_output_remove() functions cannot fail,
so make them return void.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/output.c')
-rw-r--r-- | drivers/gpu/drm/tegra/output.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index 2d3b656bfd22..8bb66008b8aa 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -172,7 +172,7 @@ int tegra_output_probe(struct tegra_output *output) return 0; } -int tegra_output_remove(struct tegra_output *output) +void tegra_output_remove(struct tegra_output *output) { if (gpio_is_valid(output->hpd_gpio)) { free_irq(output->hpd_irq, output); @@ -181,8 +181,6 @@ int tegra_output_remove(struct tegra_output *output) if (output->ddc) put_device(&output->ddc->dev); - - return 0; } int tegra_output_init(struct drm_device *drm, struct tegra_output *output) @@ -205,7 +203,7 @@ int tegra_output_init(struct drm_device *drm, struct tegra_output *output) return 0; } -int tegra_output_exit(struct tegra_output *output) +void tegra_output_exit(struct tegra_output *output) { /* * The connector is going away, so the interrupt must be disabled to @@ -216,6 +214,4 @@ int tegra_output_exit(struct tegra_output *output) if (output->panel) drm_panel_detach(output->panel); - - return 0; } |