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

Commit b79b6ab2 authored by Nadine Toledano's avatar Nadine Toledano Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: remove redundant creation of PM workqueue



ipa_power_management workqueue is created twice in the code.
This change removes the second creation.

Change-Id: I16be254eba588f5bde07a5ff273fdcd05055f3ef
Signed-off-by: default avatarNadine Toledano <nadinet@codeaurora.org>
parent b264a0a7
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -3517,14 +3517,7 @@ static int ipa_init(const struct ipa_plat_drv_res *resource_p,
		goto fail_nat_dev_add;
	}

	/* Create workqueue for power management */
	ipa_ctx->power_mgmt_wq =
		create_singlethread_workqueue("ipa_power_mgmt");
	if (!ipa_ctx->power_mgmt_wq) {
		IPAERR("failed to create wq\n");
		result = -ENOMEM;
		goto fail_init_hw;
	}


	/* Initialize IPA RM (resource manager) */
	result = ipa_rm_initialize();
+0 −9
Original line number Diff line number Diff line
@@ -3429,15 +3429,6 @@ static int ipa3_init(const struct ipa3_plat_drv_res *resource_p,
		goto fail_nat_dev_add;
	}

	/* Create workqueue for power management */
	ipa3_ctx->power_mgmt_wq =
		create_singlethread_workqueue("ipa_power_mgmt");
	if (!ipa3_ctx->power_mgmt_wq) {
		IPAERR("failed to create wq\n");
		result = -ENOMEM;
		goto fail_init_hw;
	}

	/* Initialize IPA RM (resource manager) */
	result = ipa3_rm_initialize();
	if (result) {