X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-s390%2Fsemaphore.h;h=32cdc69f39f4dd28c42521e67d77a7b536356cdc;hb=508df253dbefb0385a629370f4244e3db197d3b8;hp=702cf436698c60e77ee5198600df6ad8506c07c4;hpb=727a53bd535fe3bde644ac346db27456ad964083;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-s390/semaphore.h b/include/asm-s390/semaphore.h index 702cf436698..32cdc69f39f 100644 --- a/include/asm-s390/semaphore.h +++ b/include/asm-s390/semaphore.h @@ -37,7 +37,8 @@ struct semaphore { static inline void sema_init (struct semaphore *sem, int val) { - *sem = (struct semaphore) __SEMAPHORE_INITIALIZER((*sem),val); + atomic_set(&sem->count, val); + init_waitqueue_head(&sem->wait); } static inline void init_MUTEX (struct semaphore *sem)