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:
Gerard Marull-Paretas 2021-05-12 19:54:14 +02:00 committed by Kumar Gala
commit 7268b6fe01

View file

@ -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)