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

Commit cb1cef8c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Allow register/unregister driver execution in serial manner"

parents e5a7ccb5 2626fbf4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2078,10 +2078,9 @@ int icnss_unregister_driver(struct icnss_driver_ops *ops)

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

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