drivers: timer: sys_clock: return -ENOSYS if not implemented
-ENOSYS should be returned if the operation is not implemented. This issue was causing some PM tests to fail, as -ENOSYS was expected. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
9b846351d9
commit
7268b6fe01
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ int __weak sys_clock_device_ctrl(const struct device *dev,
|
||||||
uint32_t ctrl_command,
|
uint32_t ctrl_command,
|
||||||
uint32_t *context, pm_device_cb cb, void *arg)
|
uint32_t *context, pm_device_cb cb, void *arg)
|
||||||
{
|
{
|
||||||
return -ENOTSUP;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __weak sys_clock_set_timeout(int32_t ticks, bool idle)
|
void __weak sys_clock_set_timeout(int32_t ticks, bool idle)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue