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

Commit 36e8e958 authored by Anant Goel's avatar Anant Goel
Browse files

soc: qcom: subsystem_notif_virt: Only initialize work for virtual systems



A function is assigned to a work struct only when the subsystem
is a virtual subsystem.

Change-Id: Icdb3ddba4509d3727ecb634ccc6108c3b3b2a05d
Signed-off-by: default avatarAnant Goel <anantg@codeaurora.org>
parent e2a4721c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
					subsystem_restart_irq_handler,
					IRQF_ONESHOT | IRQF_TRIGGER_RISING,
					subsystem->name, subsystem);
			INIT_WORK(&subsystem->work, subsystem_notif_wq_func);
			break;
		default:
			dev_err(&pdev->dev, "Unsupported type %d\n",
@@ -193,8 +194,6 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
		}
	}

	if (subsystem)
		INIT_WORK(&subsystem->work, subsystem_notif_wq_func);
	return 0;
err:
	destroy_workqueue(ssr_wq);