summaryrefslogtreecommitdiff
path: root/drivers/video/of_videomode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/of_videomode.c')
-rw-r--r--drivers/video/of_videomode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/of_videomode.c b/drivers/video/of_videomode.c
index 111c2d191..b5102aa60 100644
--- a/drivers/video/of_videomode.c
+++ b/drivers/video/of_videomode.c
@@ -44,11 +44,9 @@ int of_get_videomode(struct device_node *np, struct videomode *vm,
index = disp->native_mode;
ret = videomode_from_timings(disp, vm, index);
- if (ret)
- return ret;
display_timings_release(disp);
- return 0;
+ return ret;
}
EXPORT_SYMBOL_GPL(of_get_videomode);