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.desse...@st.com>
---
 drivers/mailbox/stm32-ipcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
index a338bd4..7ca8a14 100644
--- a/drivers/mailbox/stm32-ipcc.c
+++ b/drivers/mailbox/stm32-ipcc.c
@@ -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");
-- 
2.7.4

Reply via email to