Skip to contentSkip to conversation

OMAP: FB: sem2mutex conversion

PATCH New Komal Shah 1 participant 1 message Mar 24, 2006 Framebuffer layer

lore
Share & tools
lore

Komal Shah

author
#0 lore raw

PATCH 1/1 OMAP: FB: sem2mutex conversion

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Subject: [PATCH] OMAP: FB: sem2mutex conversion

---

 drivers/video/omap/omapfb_main.c   |    6 +++---
 include/asm-arm/arch-omap/omapfb.h |    3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

e0d16c9260eadb18d6fc9aabbdf2fa87e8b80264

drivers/video/omap/omapfb_main.c +3 -3
index d32ba58..7e78379 100644
@@ -111,12 +111,12 @@ extern struct lcd_ctrl_extif rfbi_extif;
 
 static void omapfb_rqueue_lock(struct omapfb_device *fbdev)
 {
-	down(&fbdev->rqueue_sema);
+	mutex_lock(&fbdev->rqueue_mutex);
 }
 
 static void omapfb_rqueue_unlock(struct omapfb_device *fbdev)
 {
-	up(&fbdev->rqueue_sema);
+	mutex_unlock(&fbdev->rqueue_mutex);
 }
 
 /*
@@ -1273,7 +1273,7 @@ static int omapfb_do_probe(struct platfo
 	fbdev->panel = panel;
 	platform_set_drvdata(pdev, fbdev);
 
-	init_MUTEX(&fbdev->rqueue_sema);
+	mutex_init(&fbdev->rqueue_mutex);
 
 #ifdef CONFIG_ARCH_OMAP1
 	fbdev->int_ctrl = &omap1_int_ctrl;
include/asm-arm/arch-omap/omapfb.h +2 -1
index 7eade7b..fccdb3d 100644
@@ -126,6 +126,7 @@ enum omapfb_update_mode {
 #include <linux/completion.h>
 #include <linux/interrupt.h>
 #include <linux/fb.h>
+#include <linux/mutex.h>
 
 #include <asm/arch/board.h>
 
@@ -269,7 +270,7 @@ struct omapfb_device {
 	int			state;
 	int                     ext_lcdc;               /* Using external
                                                            LCD controller */
-	struct semaphore	rqueue_sema;
+	struct mutex		rqueue_mutex;
 
 	void			*vram_virt_base;
 	dma_addr_t		vram_phys_base;
Signature · 1 line
1.1.6