If the "wakeup-source" property does not exist there is no need to call device_init_wakeup("false") at probe.
Unified · Split
| @@ -276,8 +276,6 @@ static int stm32_ipcc_probe(struct platform_device *pdev) · 275 unmodified lines | ||
| 276 | 276 | dev_err(dev, "Failed to set wake up irq\n"); |
| 277 | 277 | goto err_init_wkp; |
| 278 | 278 | } |
| 279 | − } else { | |
| 280 | − device_init_wakeup(dev, false); | |
| 281 | 279 | } |
| 282 | 280 | |
| 283 | 281 | /* mailbox controller */ |