Skip to content

Commit f3d7c2c

Browse files
committed
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: Max Filippov <[email protected]>
1 parent 6489f8d commit f3d7c2c

File tree

1 file changed

+2
-2
lines changed
  • arch/xtensa/platforms/xtfpga

1 file changed

+2
-2
lines changed

arch/xtensa/platforms/xtfpga/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void __init platform_calibrate_ccount(void)
6666

6767
#endif
6868

69-
#ifdef CONFIG_OF
69+
#ifdef CONFIG_USE_OF
7070

7171
static void __init xtfpga_clk_setup(struct device_node *np)
7272
{
@@ -284,4 +284,4 @@ static int __init xtavnet_init(void)
284284
*/
285285
arch_initcall(xtavnet_init);
286286

287-
#endif /* CONFIG_OF */
287+
#endif /* CONFIG_USE_OF */

0 commit comments

Comments
 (0)