Both the device_d and device_node struct are used opaquely in this header. Forward declare them to avoid compilation errors on different include order. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/regmap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index 09b7b57d52f3..049ac0210e43 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -37,6 +37,9 @@ struct regmap_bus { regmap_hw_reg_read reg_read; }; +struct device_d; +struct device_node; + struct regmap *regmap_init(struct device_d *dev, const struct regmap_bus *bus, void *bus_context, -- 2.25.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox