core/broadcom-wl-lts/mutex-sema.patch

16 lines
421 B
Diff
Raw Permalink Normal View History

2011-05-11 05:36:17 +08:00
--- wl/src/wl/sys/wl_linux.c 2010-12-15 03:01:09.000000000 +0100
+++ temp/src/wl/sys/wl_linux.c 2011-03-04 11:02:12.754753700 +0100
@@ -482,7 +482,11 @@
2011-01-08 09:27:47 +08:00
#ifdef WL_ALL_PASSIVE
spin_lock_init(&wl->txq_lock);
#endif
- init_MUTEX(&wl->sem);
2011-05-11 05:36:17 +08:00
+ #ifndef init_MUTEX
+ sema_init(&wl->sem,1);
+ #else
+ init_MUTEX(&wl->sem);
+ #endif
2011-01-08 09:27:47 +08:00
}
if (!(wl->wlc = wlc_attach((void *) wl, vendor, device, unit, wl->piomode,