1 diff -rupN ov51x-jpeg-1.5.9-old/ov51x-jpeg-core.c ov51x-jpeg-1.5.9/ov51x-jpeg-core.c
2 --- ov51x-jpeg-1.5.9-old/ov51x-jpeg-core.c 2011-02-19 18:36:23.386643339 +0100
3 +++ ov51x-jpeg-1.5.9/ov51x-jpeg-core.c 2011-02-19 18:37:45.912406161 +0100
4 @@ -8298,11 +8298,11 @@ ov51x_probe(struct usb_interface *intf,
6 init_waitqueue_head(&ov->wq);
8 - init_MUTEX(&ov->lock); /* to 1 == available */
9 - init_MUTEX(&ov->buf_lock);
10 - init_MUTEX(&ov->param_lock);
11 - init_MUTEX(&ov->i2c_lock);
12 - init_MUTEX(&ov->cbuf_lock);
13 + sema_init(&ov->lock,1); /* to 1 == available */
14 + sema_init(&ov->buf_lock,1);
15 + sema_init(&ov->param_lock,1);
16 + sema_init(&ov->i2c_lock,1);
17 + sema_init(&ov->cbuf_lock,1);
19 ov->buf_state = BUF_NOT_ALLOCATED;