icnss: Make driver register asynchronous to probe
Driver register doesn't have to be synchronous with probe call back. Keep the driver registered till unregister gets called and never reset ops during probe failure. CRs-fixed: 2029329 Change-Id: I61331c7f33b29b0bc4833a8e4c52ee94f17660e7 Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
This commit is contained in:
parent
26db194916
commit
32076102ab
1 changed files with 1 additions and 2 deletions
|
@ -2110,7 +2110,6 @@ static int icnss_driver_event_register_driver(void *data)
|
|||
|
||||
power_off:
|
||||
icnss_hw_power_off(penv);
|
||||
penv->ops = NULL;
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
@ -2646,7 +2645,7 @@ int icnss_register_driver(struct icnss_driver_ops *ops)
|
|||
}
|
||||
|
||||
ret = icnss_driver_event_post(ICNSS_DRIVER_EVENT_REGISTER_DRIVER,
|
||||
ICNSS_EVENT_SYNC, ops);
|
||||
0, ops);
|
||||
|
||||
if (ret == -EINTR)
|
||||
ret = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue