diff mbox series

[2/2] mailbox: stm32-ipcc: remove useless device_init_wakeup call

Message ID 1546609668-6488-2-git-send-email-fabien.dessenne@st.com (mailing list archive)
State Mainlined, archived
Commit 419d67f3ec0aa5e13a51eebab4dbcd71737c7dbc
Headers show
Series [1/2] mailbox: stm32-ipcc: do not enable wakeup source by default | expand

Commit Message

Fabien DESSENNE Jan. 4, 2019, 1:47 p.m. UTC
If the "wakeup-source" property does not exist there is no need to call
device_init_wakeup("false") at probe.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
---
 drivers/mailbox/stm32-ipcc.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
index 7ca8a14..210fe50 100644
--- a/drivers/mailbox/stm32-ipcc.c
+++ b/drivers/mailbox/stm32-ipcc.c
@@ -276,8 +276,6 @@  static int stm32_ipcc_probe(struct platform_device *pdev)
 			dev_err(dev, "Failed to set wake up irq\n");
 			goto err_init_wkp;
 		}
-	} else {
-		device_init_wakeup(dev, false);
 	}
 
 	/* mailbox controller */