Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71249
b: refs/heads/master
c: 7b96dc0
h: refs/heads/master
i:
  71247: 3a0d0e5
v: v3
  • Loading branch information
Matthias Kaehlcke authored and David S. Miller committed Oct 18, 2007
1 parent d32b6d1 commit 8347584
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 6050afbbb01d1f5a867f7839be6460bac801f5bc
refs/heads/master: 7b96dc023a1b487bce59256fde14b8bb28b45aea
2 changes: 1 addition & 1 deletion trunk/drivers/sbus/char/vfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct vfc_dev {
volatile struct vfc_regs __iomem *regs;
struct vfc_regs *phys_regs;
unsigned int control_reg;
struct semaphore device_lock_sem;
struct mutex device_lock_mtx;
int instance;
int busy;
unsigned long which_io;
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/sbus/char/vfc_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/mm.h>

#include <asm/openprom.h>
Expand Down Expand Up @@ -54,12 +55,12 @@ static unsigned char saa9051_init_array[VFC_SAA9051_NR] = {

void vfc_lock_device(struct vfc_dev *dev)
{
down(&dev->device_lock_sem);
mutex_lock(&dev->device_lock_mtx);
}

void vfc_unlock_device(struct vfc_dev *dev)
{
up(&dev->device_lock_sem);
mutex_unlock(&dev->device_lock_mtx);
}


Expand Down

0 comments on commit 8347584

Please sign in to comment.