aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-omap.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-03-11 10:40:21 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-03-17 23:22:45 +0100
commitf69c2b5420497b7a54181ce170d682cbeb1f119f (patch)
tree233237da7544b384a115fbe70464cd8909efce72 /drivers/rtc/rtc-omap.c
parent4d9890ac9d43d4dfd011110ab96633caa6fa829c (diff)
downloadlinux-f69c2b5420497b7a54181ce170d682cbeb1f119f.tar.gz
rtc: omap: include header for omap_rtc_power_off_program prototype
Non-static functions should have a prototype: drivers/rtc/rtc-omap.c:410:5: error: no previous prototype for ‘omap_rtc_power_off_program’ [-Werror=missing-prototypes] Fixes: 6256f7f7f217 ("rtc: OMAP: Add support for rtc-only mode") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230311094021.79730-1-krzysztof.kozlowski@linaro.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
-rw-r--r--drivers/rtc/rtc-omap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index fad30b3dde46d..8ae4d7824ec9f 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -25,6 +25,7 @@
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/rtc.h>
+#include <linux/rtc/rtc-omap.h>
/*
* The OMAP RTC is a year/month/day/hours/minutes/seconds BCD clock