patch-drivers_isdn_hardware_mISDN_stack_c 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. - same as with core.c
  2. - try forcing sysfs-object creation
  3. --- mISDN-1_1_9_2.orig/drivers/isdn/hardware/mISDN/stack.c 2009-01-22 14:36:34.000000000 +0100
  4. +++ mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/stack.c 2011-07-20 16:43:13.224001559 +0200
  5. @@ -9,9 +9,9 @@
  6. #include "core.h"
  7. static LIST_HEAD(mISDN_stacklist);
  8. -static rwlock_t stacklist_lock = RW_LOCK_UNLOCKED;
  9. +static rwlock_t stacklist_lock = __RW_LOCK_UNLOCKED(old_style_rw_init);
  10. static LIST_HEAD(mISDN_instlist);
  11. -static rwlock_t instlist_lock = RW_LOCK_UNLOCKED;
  12. +static rwlock_t instlist_lock = __RW_LOCK_UNLOCKED(old_style_rw_init);
  13. int
  14. get_stack_cnt(void)
  15. @@ -793,7 +793,7 @@ delete_stack(mISDNstack_t *st)
  16. struct semaphore sem;
  17. u_long flags;
  18. - init_MUTEX_LOCKED(&sem);
  19. + sema_init(&sem, 0);
  20. if (core_debug & DEBUG_CORE_FUNC)
  21. printk(KERN_DEBUG "%s: st(%p:%08x)\n", __FUNCTION__, st, st->id);
  22. @@ -1216,7 +1216,7 @@ clear_stack(mISDNstack_t *st, int wait)
  23. if (wait) {
  24. struct semaphore sem;
  25. - init_MUTEX_LOCKED(&sem);
  26. + sema_init(&sem, 0);
  27. hhe->data[0] = &sem;
  28. _queue_message(st, skb);