Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 979f97dd authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

ARM: s3c64xx: avoid warning about 'struct device_node'



The change to simplify of_platform_populate() had an unintended
side-effect of introducing a build warning on s3c64xx:

In file included from arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c:18:0:
arch/arm/mach-s3c64xx/common.h:27:30: error: 'struct device_node' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]

This adds a forward-declaration for the structure name in the
header to avoid the warning.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 850bea23 ("arm: Remove unnecessary of_platform_populate with default match table")
Acked-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
parent 6176d8ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ void s3c64xx_init_io(struct map_desc *mach_desc, int size);

void s3c64xx_restart(enum reboot_mode mode, const char *cmd);

struct device_node;
void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
	unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base);
void s3c64xx_set_xtal_freq(unsigned long freq);