]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/rtl8712/osdep_service.h
staging: Final semaphore cleanup
[net-next-2.6.git] / drivers / staging / rtl8712 / osdep_service.h
index 7fca42c7c0d40f9b0d103f8a3f93f789828d0b68..d1674cd282dcd7deb370cca6b75c8f0f69b3ed73 100644 (file)
@@ -161,7 +161,7 @@ static inline u32 _down_sema(struct semaphore *sema)
 
 static inline void _rtl_rwlock_init(struct semaphore *prwlock)
 {
-       init_MUTEX(prwlock);
+       sema_init(prwlock, 1);
 }
 
 static inline void _init_listhead(struct list_head *list)