updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / rt73-k2wrlz / use_sema_init.diff
blob97b25ca80ec4a7e74312c8ca46e1ae9aba67740e
1 *** rtmp_init.c 2009-05-12 11:17:35.000000000 +0200
2 --- rtmp_init.c.orig 2011-03-19 11:12:53.350002232 +0100
3 ***************
4 *** 794,802 ****
5 pAd->MLMEThr_pid= -1;
6 pAd->RTUSBCmdThr_pid= -1;
8 ! init_MUTEX_LOCKED(&(pAd->usbdev_semaphore));
9 ! init_MUTEX_LOCKED(&(pAd->mlme_semaphore));
10 ! init_MUTEX_LOCKED(&(pAd->RTUSBCmd_semaphore));
12 init_completion (&pAd->mlmenotify); // event initially non-signalled
13 init_completion (&pAd->cmdnotify); // event initially non-signalled
14 --- 794,802 ----
15 pAd->MLMEThr_pid= -1;
16 pAd->RTUSBCmdThr_pid= -1;
18 ! sema_init(&(pAd->usbdev_semaphore), 0);
19 ! sema_init(&(pAd->mlme_semaphore), 0);
20 ! sema_init(&(pAd->RTUSBCmd_semaphore), 0);
22 init_completion (&pAd->mlmenotify); // event initially non-signalled
23 init_completion (&pAd->cmdnotify); // event initially non-signalled