From 7bcbb169069c62a3c15e75f497681894ed89ecd3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 6 Aug 2009 00:01:01 +0100 Subject: Put the mutex functions the right way round Signed-off-by: Thomas White --- drivers/mfd/glamo/glamo-cmdq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/mfd/glamo') 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", -- cgit v1.2.3