|
@@ -1929,7 +1929,7 @@ dhd_pub_t *dhd_attach(osl_t *osh, struct dhd_bus *bus, uint bus_hdrlen)
|
|
|
goto fail;
|
|
|
|
|
|
net->netdev_ops = NULL;
|
|
|
- init_MUTEX(&dhd->proto_sem);
|
|
|
+ sema_init(&dhd->proto_sem, 1);
|
|
|
/* Initialize other structure content */
|
|
|
init_waitqueue_head(&dhd->ioctl_resp_wait);
|
|
|
init_waitqueue_head(&dhd->ctrl_wait);
|
|
@@ -1977,7 +1977,7 @@ dhd_pub_t *dhd_attach(osl_t *osh, struct dhd_bus *bus, uint bus_hdrlen)
|
|
|
dhd->timer.function = dhd_watchdog;
|
|
|
|
|
|
/* Initialize thread based operation and lock */
|
|
|
- init_MUTEX(&dhd->sdsem);
|
|
|
+ sema_init(&dhd->sdsem, 1);
|
|
|
if ((dhd_watchdog_prio >= 0) && (dhd_dpc_prio >= 0))
|
|
|
dhd->threads_only = true;
|
|
|
else
|