]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rtc: emul_rtc: Make emul_rtc_probe() static
authorMichal Simek <michal.simek@amd.com>
Mon, 3 Feb 2025 09:18:57 +0000 (10:18 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 10 Feb 2025 16:29:10 +0000 (10:29 -0600)
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>
drivers/rtc/emul_rtc.c

index 97a8d9bb7df50bb08de57b1374aa97b4a0efd075..6817daad18feca69a01853237ef7801b4b4a4751 100644 (file)
@@ -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;