summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas Chou <[email protected]>2015-12-07 20:53:29 +0800
committerMarek Vasut <[email protected]>2015-12-22 04:42:27 +0100
commit25af71c4bfcd54a88cc9098f23416fe9d1f7d80c (patch)
treed5f6fde2ae61e4412614dba4835c16da39dca134 /drivers
parent07806977878130dd27dfc926ef7002041f6cf288 (diff)
net: eth_designware: select PHYLIB in Kconfig
Select PHYLIB in drivers/net/Kconfig. And remove CONFIG_PHYLIB from legacy board header files. This fixed the warnings when both ALTERA_TSE and ETH_DESIGNWARE are selected. Signed-off-by: Thomas Chou <[email protected]> Reported-by: Pavel Machek <[email protected]> Acked-by: Chin Liang See <[email protected]> Acked-by: Pavel Machek <[email protected]> Tested-by: Pavel Machek <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/Kconfig1
-rw-r--r--drivers/net/designware.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index ae5e78dd344..de54ca8014c 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -88,6 +88,7 @@ config ETH_SANDBOX_RAW
config ETH_DESIGNWARE
bool "Synopsys Designware Ethernet MAC"
+ select PHYLIB
help
This MAC is present in SoCs from various vendors. It supports
100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index a6c39c39ffa..3af43b41fdd 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -22,10 +22,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#if !defined(CONFIG_PHYLIB)
-# error "DesignWare Ether MAC requires PHYLIB - missing CONFIG_PHYLIB"
-#endif
-
static int dw_mdio_read(struct mii_dev *bus, int addr, int devad, int reg)
{
struct eth_mac_regs *mac_p = bus->priv;