mailbox: stm32-ipcc: do not enable wakeup source by default
authorFabien Dessenne <fabien.dessenne@st.com>
Fri, 4 Jan 2019 13:47:47 +0000 (14:47 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 7 Mar 2019 02:33:52 +0000 (20:33 -0600)
By default do not enable the wakeup source.
This lets the userspace application decide whether the wakeup source
shall be enabled or not.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/stm32-ipcc.c

index a338bd4cd7db69ccd539af77b75c26a612d1c9eb..7ca8a14138b7b5ac19dfddb1e046115aa03f5672 100644 (file)
@@ -270,7 +270,7 @@ static int stm32_ipcc_probe(struct platform_device *pdev)
                        goto err_clk;
                }
 
-               device_init_wakeup(dev, true);
+               device_set_wakeup_capable(dev, true);
                ret = dev_pm_set_dedicated_wake_irq(dev, ipcc->wkp);
                if (ret) {
                        dev_err(dev, "Failed to set wake up irq\n");