aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-06 00:01:01 +0100
committerThomas White <taw@bitwiz.org.uk>2009-08-06 00:01:01 +0100
commit7bcbb169069c62a3c15e75f497681894ed89ecd3 (patch)
treec77b2701bf2e9e1838c45cdd5f5ace4ad6d075d5
parentcd5b72b48c0f1f1e94189f187f78a9e3a5f8507d (diff)
Put the mutex functions the right way round
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo/glamo-cmdq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/glamo/glamo-cmdq.c b/drivers/mfd/glamo/glamo-cmdq.c
index 5f61c1919fd..dd1c89646f3 100644
--- a/drivers/mfd/glamo/glamo-cmdq.c
+++ b/drivers/mfd/glamo/glamo-cmdq.c
@@ -102,7 +102,7 @@ static int glamo_add_to_ring(struct glamodrm_handle *gdrm, u16 *addr,
printk(KERN_INFO "[glamo-drm] glamo add to ring %d bytes,"
" ring_read: %d\n", count, glamo_get_read(gdrm));
- up(&gdrm->add_to_ring);
+ down(&gdrm->add_to_ring);
ring_write = glamo_get_write(gdrm);
@@ -168,7 +168,7 @@ static int glamo_add_to_ring(struct glamodrm_handle *gdrm, u16 *addr,
reg_write(gdrm, GLAMO_REG_CMDQ_WRITE_ADDRL,
new_ring_write & 0xffff);
- down(&gdrm->add_to_ring);
+ up(&gdrm->add_to_ring);
printk(KERN_INFO "[glamo-drm] IOCTL2 CMDQ at: %d-%d, CMDQ CTRL: %d,"
" CMDQ STATUS: %d\n",