On 05/12/2016 at 10:43:14 +0100, Amelie DELAUNAY wrote :OK so, is it OK for everyone that I bet on the fact that it will always succeed?
It means that RTC won't be able to wake up the board with RTC alarm. I can+
+ device_init_wakeup(&pdev->dev, true);
What happens if device_init_wakeup() returns an error?
add a warning for the user in this case ?
There is exactly one driver ever checking the return value of
device_init_wakeup(). It basically always succeeds.