Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105525
b: refs/heads/master
c: b91dbce
h: refs/heads/master
i:
  105523: 6bc3ced
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Linus Torvalds committed Jul 24, 2008
1 parent 07d0159 commit 7066ecb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14aefd1b49ff3bd13caa37fb06bd53488d5d1486
refs/heads/master: b91dbce56a8dbf312f6255d5121b295553d2b4db
7 changes: 4 additions & 3 deletions trunk/drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/freezer.h>

Expand Down Expand Up @@ -1117,7 +1118,7 @@ static void set_ctrlr_state(struct pxafb_info *fbi, u_int state)
{
u_int old_state;

down(&fbi->ctrlr_sem);
mutex_lock(&fbi->ctrlr_lock);

old_state = fbi->state;

Expand Down Expand Up @@ -1205,7 +1206,7 @@ static void set_ctrlr_state(struct pxafb_info *fbi, u_int state)
}
break;
}
up(&fbi->ctrlr_sem);
mutex_unlock(&fbi->ctrlr_lock);
}

/*
Expand Down Expand Up @@ -1458,7 +1459,7 @@ static struct pxafb_info * __devinit pxafb_init_fbinfo(struct device *dev)

init_waitqueue_head(&fbi->ctrlr_wait);
INIT_WORK(&fbi->task, pxafb_task);
init_MUTEX(&fbi->ctrlr_sem);
mutex_init(&fbi->ctrlr_lock);
init_completion(&fbi->disable_done);
#ifdef CONFIG_FB_PXA_SMARTPANEL
init_completion(&fbi->command_done);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/pxafb.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct pxafb_info {

volatile u_char state;
volatile u_char task_state;
struct semaphore ctrlr_sem;
struct mutex ctrlr_lock;
wait_queue_head_t ctrlr_wait;
struct work_struct task;

Expand Down

0 comments on commit 7066ecb

Please sign in to comment.