Skip to contentSkip to conversation

Initialise the struct fb_info mutexes in clcdfb_register()

PATCH New Catalin Marinas 1 participant 1 message Jul 7, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Initialise the struct fb_info mutexes in clcdfb_register()

Commit 4148df9b0 moved the fb_info.lock and fb_info.mm_lock mutex initialisation from register_framebuffer() to framebuffer_alloc(). However, the AMBA CLCD driver wraps the struct fb_info in the clcd_fb structure, the latter being allocated with kzalloc.

Cc Russell King <[email protected]>
Cc Paul Mundt <[email protected]>
---
 drivers/video/amba-clcd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/video/amba-clcd.c +3 -0
index fb8163d..d5848aa 100644
@@ -360,6 +360,9 @@ static int clcdfb_register(struct clcd_fb *fb)
 		goto free_clk;
 	}
 
+	mutex_init(&fb->fb.lock);
+	mutex_init(&fb->fb.mm_lock);
+
 	fb->fb.fbops		= &clcdfb_ops;
 	fb->fb.flags		= FBINFO_FLAG_DEFAULT;
 	fb->fb.pseudo_palette	= fb->cmap;