Merge 'staging-next' to Linus's tree
[linux-2.6.git] / drivers / staging / dream / pmem.c
index 3640d1f..4d3d300 100644 (file)
@@ -1233,7 +1233,7 @@ int pmem_setup(struct android_pmem_platform_data *pdata,
        pmem[id].ioctl = ioctl;
        pmem[id].release = release;
        init_rwsem(&pmem[id].bitmap_sem);
-       init_MUTEX(&pmem[id].data_list_sem);
+       sema_init(&pmem[id].data_list_sem, 1);
        INIT_LIST_HEAD(&pmem[id].data_list);
        pmem[id].dev.name = pdata->name;
        pmem[id].dev.minor = id;