From 32076102abfb471f46920998ab48c3d891de334a Mon Sep 17 00:00:00 2001 From: Anurag Chouhan Date: Fri, 24 Mar 2017 16:07:45 +0530 Subject: [PATCH] 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 --- drivers/soc/qcom/icnss.c | 3 +-- 1 file changed, 1 insertion(+), 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;