From: Fabien Dessenne Date: Fri, 4 Jan 2019 13:47:47 +0000 (+0100) Subject: mailbox: stm32-ipcc: do not enable wakeup source by default X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eac36c8651210df34d43331a6cc3fb3c2ee7abe2;p=openwrt%2Fstaging%2Fblogic.git mailbox: stm32-ipcc: do not enable wakeup source by default 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 Signed-off-by: Jassi Brar --- diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c index a338bd4cd7db..7ca8a14138b7 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");