summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2025-02-03 10:18:57 +0100
committerTom Rini <trini@konsulko.com>2025-02-10 10:29:10 -0600
commit5b280448bb4e188db27d159b196c1eab4c0f7628 (patch)
tree34253ee919c8fccd3b8d73618d8cdb7c374e2f7d /drivers/rtc
parent8897f91a5397a90c7e2b6fad4263c93541c9a685 (diff)
rtc: emul_rtc: Make emul_rtc_probe() static
emul_rtc_probe() is not called from anywhere else that's why make it static. Issue is reported by build with W=1. Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/emul_rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/emul_rtc.c b/drivers/rtc/emul_rtc.c
index 97a8d9bb7df..6817daad18f 100644
--- a/drivers/rtc/emul_rtc.c
+++ b/drivers/rtc/emul_rtc.c
@@ -58,7 +58,7 @@ static int emul_rtc_set(struct udevice *dev, const struct rtc_time *time)
return 0;
}
-int emul_rtc_probe(struct udevice *dev)
+static int emul_rtc_probe(struct udevice *dev)
{
struct emul_rtc *priv = dev_get_priv(dev);
const char *epoch_str;