rtc: pl031: Correct function type of pl031_write_reg

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>
This commit is contained in:
Tom Rini
2025-08-04 15:57:12 -06:00
parent d7daa9274b
commit 91122ea8f0

View 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);
}
/*