Commit cf60ce92 authored by Pavel Pisa's avatar Pavel Pisa Committed by Rob Herring
Browse files

of: overlay: Fix of_overlay_fdt_apply prototype when !CONFIG_OF_OVERLAY



The of_overlay_fdt_apply has been changed but when CONFIG_OF_OVERLAY
support is not configured then old stub prototype is declared
by of.h header.

Signed-off-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
Fixes: 47284862 ("of: overlay: Extend of_overlay_fdt_apply() to specify the target node")
Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20230904100002.7913-1-pisa@cmp.felk.cvut.cz


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 75cc1867
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1676,8 +1676,8 @@ int of_overlay_notifier_unregister(struct notifier_block *nb);

#else

static inline int of_overlay_fdt_apply(void *overlay_fdt, u32 overlay_fdt_size,
				       int *ovcs_id)
static inline int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size,
				       int *ovcs_id, struct device_node *target_base)
{
	return -ENOTSUPP;
}