Skip to content

Commit

Permalink
xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF
Browse files Browse the repository at this point in the history
[ Upstream commit f3d7c2cdf6dc0d5402ec29c3673893b3542c5ad1 ]

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 <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jcmvbkbc authored and gregkh committed Oct 27, 2021
1 parent 7ca378b commit 1c21a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/platforms/xtfpga/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void __init platform_calibrate_ccount(void)

#endif

#ifdef CONFIG_OF
#ifdef CONFIG_USE_OF

static void __init xtfpga_clk_setup(struct device_node *np)
{
Expand Down Expand Up @@ -303,4 +303,4 @@ static int __init xtavnet_init(void)
*/
arch_initcall(xtavnet_init);

#endif /* CONFIG_OF */
#endif /* CONFIG_USE_OF */

0 comments on commit 1c21a8d

Please sign in to comment.