diff options
| author | Anurag Chouhan <achouhan@codeaurora.org> | 2017-03-24 16:07:45 +0530 |
|---|---|---|
| committer | Anurag Chouhan <achouhan@codeaurora.org> | 2017-04-05 17:26:46 +0530 |
| commit | 32076102abfb471f46920998ab48c3d891de334a (patch) | |
| tree | adcf4440c821035d76d521258677fb233fcb456b | |
| parent | 26db194916bdb891d9b2865d38cbe8068760d8ce (diff) | |
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>
| -rw-r--r-- | drivers/soc/qcom/icnss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index 0b35caa86d51..ab46eb70651c 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -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; |
