OSDN Git Service

rtc: pl031: avoid exposing alarm if no interrupt
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Sep 2017 10:22:10 +0000 (11:22 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 14:30:25 +0000 (16:30 +0200)
commitb86f581f8cdbec3655d400ad952c2203a74edde1
treea3ea7d4d259a1d4c781532a9ed6c9a36b7b64d5e
parent273c868e85a56481ccb34822be2033dbe63248fb
rtc: pl031: avoid exposing alarm if no interrupt

If the RTC has no interrupt, there is little point in exposing the RTC
alarm capabilities, as it can't be used as a wakeup source nor can it
deliver an event to userspace.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pl031.c