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:
Anurag Chouhan 2017-03-24 16:07:45 +05:30
parent 26db194916
commit 32076102ab

View file

@ -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;