diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-09-16 09:16:51 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-11-03 00:50:46 +0100 |
commit | e21a47ff4dcef8c5fb57758035b266299b184146 (patch) | |
tree | 94a9d7e57c65f192968d30b2c5f5b3deb8bf9c71 /drivers/rtc/rtc-ds1390.c | |
parent | 4d8318bc97a1c37142d0e7618061f09b37d319b6 (diff) |
rtc: rtctest: enabling UIE for a chip that doesn't support it returns EINVAL
Calling ioctl(..., RTC_UIE_ON, ...) without CONFIG_RTC_INTF_DEV_UIE_EMUL
either ends in rtc_update_irq_enable if rtc->uie_unsupported is true
or in __rtc_set_alarm in the if (!rtc->ops->set_alarm) branch. In both
cases the return value is -EINVAL. So check for that one instead of
ENOTTY.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1390.c')
0 files changed, 0 insertions, 0 deletions