Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83847
b: refs/heads/master
c: ae5e297
h: refs/heads/master
i:
  83845: 9107004
  83843: d5ff4aa
  83839: 36a26df
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Linus Torvalds committed Feb 7, 2008
1 parent 65535e1 commit 34a8fad
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 46bca69682731104b42f99da763b9a08a0574291
refs/heads/master: ae5e29798afa2b11a01fcb4fab8b58fee47fe155
6 changes: 3 additions & 3 deletions trunk/drivers/char/mbcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ do_mbcs_sram_dmaread(struct mbcs_soft *soft, uint64_t hostAddr,
{
int rv = 0;

if (down_interruptible(&soft->dmareadlock))
if (mutex_lock_interruptible(&soft->dmareadlock))
return -ERESTARTSYS;

atomic_set(&soft->dmawrite_done, 0);
Expand All @@ -372,7 +372,7 @@ do_mbcs_sram_dmaread(struct mbcs_soft *soft, uint64_t hostAddr,
*off += len;

dmaread_exit:
up(&soft->dmareadlock);
mutex_unlock(&soft->dmareadlock);

return rv;
}
Expand Down Expand Up @@ -764,7 +764,7 @@ static int mbcs_probe(struct cx_dev *dev, const struct cx_device_id *id)
init_waitqueue_head(&soft->algo_queue);

mutex_init(&soft->dmawritelock);
init_MUTEX(&soft->dmareadlock);
mutex_init(&soft->dmareadlock);
mutex_init(&soft->algolock);

mbcs_getdma_init(&soft->getdma);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/mbcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ struct mbcs_soft {
atomic_t dmaread_done;
atomic_t algo_done;
struct mutex dmawritelock;
struct semaphore dmareadlock;
struct mutex dmareadlock;
struct mutex algolock;
};

Expand Down

0 comments on commit 34a8fad

Please sign in to comment.