slackbuilds_ponce/network/broadcom-sta/wl_linux.c-semaphore.patch
Robby Workman 40bff32947 network/broadcom-sta: Fixed build with 2.6.37.x kernels
http://bugs.gentoo.org/350196

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-03-20 14:08:07 -05:00

12 lines
422 B
Diff

diff -Nur orig//src/wl/sys/wl_linux.c fixed/src/wl/sys/wl_linux.c
--- orig//src/wl/sys/wl_linux.c 2010-12-14 19:58:07.000000000 -0600
+++ fixed/src/wl/sys/wl_linux.c 2011-03-09 12:32:47.236260917 -0600
@@ -482,7 +482,7 @@
#ifdef WL_ALL_PASSIVE
spin_lock_init(&wl->txq_lock);
#endif
- init_MUTEX(&wl->sem);
+ sema_init(&wl->sem,1);
}
if (!(wl->wlc = wlc_attach((void *) wl, vendor, device, unit, wl->piomode,