Commit f3d7c2cd authored by Max Filippov's avatar Max Filippov

xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF

Use platform data to initialize xtfpga device drivers when CONFIG_USE_OF
is not selected. This fixes xtfpga networking when CONFIG_USE_OF is not
selected but CONFIG_OF is.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 6489f8d0
...@@ -66,7 +66,7 @@ void __init platform_calibrate_ccount(void) ...@@ -66,7 +66,7 @@ void __init platform_calibrate_ccount(void)
#endif #endif
#ifdef CONFIG_OF #ifdef CONFIG_USE_OF
static void __init xtfpga_clk_setup(struct device_node *np) static void __init xtfpga_clk_setup(struct device_node *np)
{ {
...@@ -284,4 +284,4 @@ static int __init xtavnet_init(void) ...@@ -284,4 +284,4 @@ static int __init xtavnet_init(void)
*/ */
arch_initcall(xtavnet_init); arch_initcall(xtavnet_init);
#endif /* CONFIG_OF */ #endif /* CONFIG_USE_OF */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment