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