diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-19 09:47:30 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 04:14:48 -0500 |
commit | 4009c22420593cae6d99b4ba43d3864c5788cd77 (patch) | |
tree | 0c445b01bec67c3692577073405f0711b1befbcf /drivers/gpu/drm/tegra/dsi.c | |
parent | 6fad8f66d7b5f2194f30c62ac40248e15a5b2af1 (diff) |
drm/tegra: debugfs cleanup cannot fail
The debugfs cleanup code never fails, so no error is returned. Therefore
the functions can all return void instead.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dsi.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 0b476e1c005a..a999478b2c47 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c | |||
@@ -228,7 +228,7 @@ remove: | |||
228 | return err; | 228 | return err; |
229 | } | 229 | } |
230 | 230 | ||
231 | static int tegra_dsi_debugfs_exit(struct tegra_dsi *dsi) | 231 | static void tegra_dsi_debugfs_exit(struct tegra_dsi *dsi) |
232 | { | 232 | { |
233 | drm_debugfs_remove_files(dsi->debugfs_files, ARRAY_SIZE(debugfs_files), | 233 | drm_debugfs_remove_files(dsi->debugfs_files, ARRAY_SIZE(debugfs_files), |
234 | dsi->minor); | 234 | dsi->minor); |
@@ -239,8 +239,6 @@ static int tegra_dsi_debugfs_exit(struct tegra_dsi *dsi) | |||
239 | 239 | ||
240 | debugfs_remove(dsi->debugfs); | 240 | debugfs_remove(dsi->debugfs); |
241 | dsi->debugfs = NULL; | 241 | dsi->debugfs = NULL; |
242 | |||
243 | return 0; | ||
244 | } | 242 | } |
245 | 243 | ||
246 | #define PKT_ID0(id) ((((id) & 0x3f) << 3) | (1 << 9)) | 244 | #define PKT_ID0(id) ((((id) & 0x3f) << 3) | (1 << 9)) |
@@ -1025,15 +1023,11 @@ reset: | |||
1025 | static int tegra_dsi_exit(struct host1x_client *client) | 1023 | static int tegra_dsi_exit(struct host1x_client *client) |
1026 | { | 1024 | { |
1027 | struct tegra_dsi *dsi = host1x_client_to_dsi(client); | 1025 | struct tegra_dsi *dsi = host1x_client_to_dsi(client); |
1028 | int err; | ||
1029 | 1026 | ||
1030 | tegra_output_exit(&dsi->output); | 1027 | tegra_output_exit(&dsi->output); |
1031 | 1028 | ||
1032 | if (IS_ENABLED(CONFIG_DEBUG_FS)) { | 1029 | if (IS_ENABLED(CONFIG_DEBUG_FS)) |
1033 | err = tegra_dsi_debugfs_exit(dsi); | 1030 | tegra_dsi_debugfs_exit(dsi); |
1034 | if (err < 0) | ||
1035 | dev_err(dsi->dev, "debugfs cleanup failed: %d\n", err); | ||
1036 | } | ||
1037 | 1031 | ||
1038 | reset_control_assert(dsi->rst); | 1032 | reset_control_assert(dsi->rst); |
1039 | 1033 | ||