Skip to contentSkip to conversation

MIPS: ath79: Add missing include file

PATCH In review Guenter Roeck 2 participants 2 messages Jul 24, 2016 – Jul 25, 2016 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: ath79: Add missing include file

Commit ddd0ce87bfde ("mips: Remove unnecessary of_platform_populate with default match table") dropped the include of linux/clk-provider.h from arch/mips/ath79/setup.c. This results in the following build error.

arch/mips/ath79/setup.c: In function 'ath79_of_plat_time_init':
arch/mips/ath79/setup.c:232:2: error:
implicit declaration of function 'of_clk_init'

Fixes ddd0ce87bfde ("mips: Remove unnecessary of_platform_populate with default match table")
Cc Rob Herring <[email protected]>
Cc Kefeng Wang <[email protected]>
---
 arch/mips/ath79/setup.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/ath79/setup.c +1 -0
index 8887eb1ffc73..3a0019deb7f7 100644
@@ -17,6 +17,7 @@
 #include <linux/bootmem.h>
 #include <linux/err.h>
 #include <linux/clk.h>
+#include <linux/clk-provider.h>
 #include <linux/of_fdt.h>
 
 #include <asm/bootinfo.h>
Signature · 1 line
2.5.0
#1 lore raw
Quoted 8 lines · Guenter Roeck

Commit ddd0ce87bfde ("mips: Remove unnecessary of_platform_populate with default match table") dropped the include of linux/clk-provider.h from arch/mips/ath79/setup.c. This results in the following build error.

arch/mips/ath79/setup.c: In function 'ath79_of_plat_time_init':
arch/mips/ath79/setup.c:232:2: error:
implicit declaration of function 'of_clk_init'

Quoted 7 lines
Fixes ddd0ce87bfde ("mips: Remove unnecessary of_platform_populate with default match table")
Cc Rob Herring <[email protected]>
Cc Kefeng Wang <[email protected]>
---
 arch/mips/ath79/setup.c | 1 +
 1 file changed, 1 insertion(+)

Since the error is in my tree, I've applied this. Thanks.

Rob