Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f5ddefd authored by Vladimir Murzin's avatar Vladimir Murzin Committed by Tomi Valkeinen
Browse files

fbdev: propagate result of fb_videomode_from_videomode()



fb_videomode_from_videomode() may fail, but of_get_fb_videomode()
silently covers this fact. Instead, trow the error code to the
caller.

Signed-off-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 127b0c94
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1475,7 +1475,9 @@ int of_get_fb_videomode(struct device_node *np, struct fb_videomode *fb,
	if (ret)
		return ret;

	fb_videomode_from_videomode(&vm, fb);
	ret = fb_videomode_from_videomode(&vm, fb);
	if (ret)
		return ret;

	pr_debug("%s: got %dx%d display mode from %s\n",
		of_node_full_name(np), vm.hactive, vm.vactive, np->name);