aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-opal.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-19 23:25:31 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:10 +0200
commitfd86b2d4bbfc66a42af51677a72254d304d79c99 (patch)
tree5b584b3009c6879d673ae57a80b06be25c383448 /drivers/rtc/rtc-opal.c
parentd3062d1d7415cb5a37777220357aca51a491c3d7 (diff)
downloadlinux-fd86b2d4bbfc66a42af51677a72254d304d79c99.tar.gz
rtc: opal: Make opal_tpo_alarm_irq_enable static
Fix sparse warning: drivers/rtc/rtc-opal.c:227:5: warning: symbol 'opal_tpo_alarm_irq_enable' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-opal.c')
-rw-r--r--drivers/rtc/rtc-opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c
index 60f2250fd96be..3dd9d266ce096 100644
--- a/drivers/rtc/rtc-opal.c
+++ b/drivers/rtc/rtc-opal.c
@@ -224,7 +224,7 @@ exit:
return rc;
}
-int opal_tpo_alarm_irq_enable(struct device *dev, unsigned int enabled)
+static int opal_tpo_alarm_irq_enable(struct device *dev, unsigned int enabled)
{
struct rtc_wkalrm alarm = { .enabled = 0 };