Commit 2b10dd8a authored by Olivier Martin's avatar Olivier Martin Committed by Anas Nashif
Browse files

drivers: rtc: Fix build



_impl_rtc_(enable|disable) does not return a value while
Z_SYSCALL_HANDLER(rtc_(enable|disable)) expects to return a value.

Signed-off-by: default avatarOlivier Martin <olivier.martin@proglove.de>
parent 608778a4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,13 +16,15 @@ Z_SYSCALL_HANDLER(rtc_read, dev)
Z_SYSCALL_HANDLER(rtc_enable, dev)
{
	Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, enable));
	return _impl_rtc_enable((struct device *)dev);
	_impl_rtc_enable((struct device *)dev);
	return 0;
}

Z_SYSCALL_HANDLER(rtc_disable, dev)
{
	Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, disable));
	return _impl_rtc_disable((struct device *)dev);
	_impl_rtc_disable((struct device *)dev);
	return 0;
}

Z_SYSCALL_HANDLER(rtc_set_alarm, dev, alarm_val)