Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e0ff5c0 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

icnss2: Avoid wlan driver unload if driver is not probed



Avoid wlan host driver unload if wlan host driver is not
probed.

Change-Id: I1666d8687375d46909af9ff8d4e1c2c1cacb5ad3
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 6ec3edf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2006,7 +2006,7 @@ int icnss_unregister_driver(struct icnss_driver_ops *ops)

	icnss_pr_dbg("Unregistering driver, state: 0x%lx\n", priv->state);

	if (!priv->ops) {
	if (!priv->ops || (!test_bit(ICNSS_DRIVER_PROBED, &penv->state))) {
		icnss_pr_err("Driver not registered\n");
		ret = -ENOENT;
		goto out;