From: Zhao Qiang Date: Wed, 7 Feb 2018 02:01:56 +0000 (+0800) Subject: PowerPC: phy: enable all phylib drivers when use phylib and tsec enet X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=990d06b0bcb0ad1d8a0d1846b2d4890db120364e;p=project%2Fbcm63xx%2Fu-boot.git PowerPC: phy: enable all phylib drivers when use phylib and tsec enet config_phylib_all_drivers.h should be included when CONFIG_PHYLIB and CONFIG_TSEC_ENET are defined. Fixes: 3146f0c017 ("Move PHYLIB to Kconfig") Signed-off-by: Zhao Qiang Reviewed-by: York Sun --- diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h index 67e4b48a96..39eeb39901 100644 --- a/arch/powerpc/include/asm/config.h +++ b/arch/powerpc/include/asm/config.h @@ -70,11 +70,9 @@ #endif /* The TSEC driver uses the PHYLIB infrastructure */ -#ifndef CONFIG_PHYLIB -#if defined(CONFIG_TSEC_ENET) +#if defined(CONFIG_TSEC_ENET) && defined(CONFIG_PHYLIB) #include #endif /* TSEC_ENET */ -#endif /* !CONFIG_PHYLIB */ /* The FMAN driver uses the PHYLIB infrastructure */