summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-06-09 02:45:18 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-09 02:45:17 -0700
commit3570da6f66df3de173964919774ad930bc9fc372 (patch)
tree89dfc68394b23917518013175a232ef99c86b5e2
parent8bb96fd0d34f48d151f4119ed044d25cd4d6effa (diff)
parente9a0e8404cf7c8ce474f5b5efcbf16a7be7940c1 (diff)
Merge "icnss: Enable platform device to be a wakeup source"
-rw-r--r--drivers/soc/qcom/icnss.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c
index 43d954a0f7c7..73c19eaab4a3 100644
--- a/drivers/soc/qcom/icnss.c
+++ b/drivers/soc/qcom/icnss.c
@@ -4276,6 +4276,11 @@ static int icnss_probe(struct platform_device *pdev)
icnss_debugfs_create(priv);
+ ret = device_init_wakeup(&priv->pdev->dev, true);
+ if (ret)
+ icnss_pr_err("Failed to init platform device wakeup source, err = %d\n",
+ ret);
+
penv = priv;
icnss_pr_info("Platform driver probed successfully\n");
@@ -4296,6 +4301,8 @@ static int icnss_remove(struct platform_device *pdev)
{
icnss_pr_info("Removing driver: state: 0x%lx\n", penv->state);
+ device_init_wakeup(&penv->pdev->dev, false);
+
icnss_debugfs_destroy(penv);
icnss_modem_ssr_unregister_notifier(penv);