diff --git a/drivers/power/relay/relay.c b/drivers/power/relay/relay.c index ccf42eb055..0179df82e9 100644 --- a/drivers/power/relay/relay.c +++ b/drivers/power/relay/relay.c @@ -116,7 +116,7 @@ static int relay_ioctl(FAR struct file *filep, int cmd, unsigned long arg) } else { - ret = -ENOTSUP; + ret = -ENOTTY; } break; }