aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timers/rtctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/timers/rtctest.c')
-rw-r--r--tools/testing/selftests/timers/rtctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/rtctest.c b/tools/testing/selftests/timers/rtctest.c
index d80ae852334d..624bce51b27d 100644
--- a/tools/testing/selftests/timers/rtctest.c
+++ b/tools/testing/selftests/timers/rtctest.c
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
/* Turn on update interrupts (one per second) */
retval = ioctl(fd, RTC_UIE_ON, 0);
if (retval == -1) {
- if (errno == ENOTTY) {
+ if (errno == EINVAL) {
fprintf(stderr,
"\n...Update IRQs not supported.\n");
goto test_READ;