[PATCH 3/3] fb: alloc or free shadowfb whether fb enabled or disabled

Antony Pavlov antonynpavlov at gmail.com
Thu Nov 5 21:52:19 PST 2015


From: Aleksey Kuleshov <rndfax at yandex.ru>

Resolution can't be changed anyway once fb_enable() has been called,
since no corresponding fb_disable() call appears in the code.

Signed-off-by: Aleksey Kuleshov <rndfax at yandex.ru>
---
 drivers/video/fb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index bd8bab0..d159d60 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -99,9 +99,9 @@ static int fb_enable_set(struct param_d *param, void *priv)
 	enable = info->p_enable;
 
 	if (enable)
-		info->fbops->fb_enable(info);
+		fb_enable(info);
 	else
-		info->fbops->fb_disable(info);
+		fb_disable(info);
 
 	return 0;
 }
-- 
2.6.2




More information about the barebox mailing list