summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-11-21 15:54:30 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-11-21 15:54:30 -0800
commit201b38a555bd4f2034e0bde307715de05f69f123 (patch)
tree20f466c73d70e3cba594487b942a529344b659bd
parent6b11a3742af85e2e5618b35b047cd22a2ffd292f (diff)
parent36e8e9585f4b1099c1313b9b3dde7b152468419c (diff)
Merge "soc: qcom: subsystem_notif_virt: Only initialize work for virtual systems"
-rw-r--r--drivers/soc/qcom/subsystem_notif_virt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/qcom/subsystem_notif_virt.c b/drivers/soc/qcom/subsystem_notif_virt.c
index 5c9acf7e4563..8d2f2acd0be9 100644
--- a/drivers/soc/qcom/subsystem_notif_virt.c
+++ b/drivers/soc/qcom/subsystem_notif_virt.c
@@ -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);