aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2022-07-26 16:41:13 +0800
committerStefano Babic <sbabic@denx.de>2022-07-26 11:29:01 +0200
commit00fcfa81cbf7da5397bb745f934400f3192804d7 (patch)
treea382ffe87d0e00d5c122deea3934f574e7f6f106 /drivers
parent09de565f76b8dded1c7a77f62eb459a2b1060891 (diff)
downloadu-boot-00fcfa81cbf7da5397bb745f934400f3192804d7.zip
u-boot-00fcfa81cbf7da5397bb745f934400f3192804d7.tar.gz
u-boot-00fcfa81cbf7da5397bb745f934400f3192804d7.tar.bz2
net: dwc_eth_qos: fix build break when CLK not enabled
When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Take eqos definition out the CONFIG_CLK ifdef. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dwc_eth_qos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index 9d255cf..6048d56 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -1774,11 +1774,11 @@ static int eqos_remove_resources_tegra186(struct udevice *dev)
static int eqos_remove_resources_stm32(struct udevice *dev)
{
-#ifdef CONFIG_CLK
struct eqos_priv *eqos = dev_get_priv(dev);
debug("%s(dev=%p):\n", __func__, dev);
+#ifdef CONFIG_CLK
clk_free(&eqos->clk_tx);
clk_free(&eqos->clk_rx);
clk_free(&eqos->clk_master_bus);