Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alarmtimer: ensure RTC module is not unloaded
When registering the rtc device to be used to handle alarm timers, get_device is used to ensure the device doesn't go away but the module can still be unloaded. Call try_module_get to ensure the rtc driver will not go away. Reported-by: Michal Simek <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Tested-by: Michal Simek <[email protected]> Signed-off-by: Michal Simek <[email protected]>
- Loading branch information