]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rtc: pl031: Correct function type of pl031_write_reg
authorTom Rini <trini@konsulko.com>
Mon, 4 Aug 2025 21:57:12 +0000 (15:57 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Aug 2025 17:03:05 +0000 (11:03 -0600)
When calling writel we do not have a return value to check or pass
along. This function should therefore be void and not return what writel
gives us.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/rtc/pl031.c

index 855ee9134168c9c93be610262cf6f379626625aa..6f189bc503efdb74d5e97f5b2f661a51f16a8796 100644 (file)
@@ -39,11 +39,11 @@ static inline u32 pl031_read_reg(struct udevice *dev, int reg)
        return readl(pdata->base + reg);
 }
 
-static inline u32 pl031_write_reg(struct udevice *dev, int reg, u32 value)
+static inline void pl031_write_reg(struct udevice *dev, int reg, u32 value)
 {
        struct pl031_plat *pdata = dev_get_plat(dev);
 
-       return writel(value, pdata->base + reg);
+       writel(value, pdata->base + reg);
 }
 
 /*