sem2mutex conversion
Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
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);
}
/*
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 <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
+#include <linux/mutex.h>
#include <asm/arch/board.h>
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;