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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user