Skip to content

Commit

Permalink
alarmtimer: Change remaining ENOTSUPP to EOPNOTSUPP
Browse files Browse the repository at this point in the history
Fix backport of commit f18ddc13af981ce3c7b7f26925f099e7c6929aba upstream.

Update backport to change ENOTSUPP to EOPNOTSUPP in
alarm_timer_{del,set}(), which were removed in
f2c45807d3992fe0f173f34af9c347d907c31686 in v4.13-rc1.

Fixes: c22df8ea7c5831d6fdca2f6f136f0d32d7064ff9

Signed-off-by: Petr Vorel <[email protected]>
Acked-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Change-Id: I21d504d246f8082f819ba7d28c2ecec74cf9841f
  • Loading branch information
pevik authored and Tomoms committed Mar 28, 2021
1 parent ce15423 commit e9003fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static void alarm_timer_get(struct k_itimer *timr,
static int alarm_timer_del(struct k_itimer *timr)
{
if (!rtcdev)
return -ENOTSUPP;
return -EOPNOTSUPP;

if (alarm_try_to_cancel(&timr->it.alarm.alarmtimer) < 0)
return TIMER_RETRY;
Expand All @@ -796,7 +796,7 @@ static int alarm_timer_set(struct k_itimer *timr, int flags,
ktime_t exp;

if (!rtcdev)
return -ENOTSUPP;
return -EOPNOTSUPP;

if (flags & ~TIMER_ABSTIME)
return -EINVAL;
Expand Down

0 comments on commit e9003fd

Please sign in to comment.