Revision | 00fcfa81cbf7da5397bb745f934400f3192804d7 (tree) |
---|---|
Zeit | 2022-07-26 18:29:01 |
Autor | Peng Fan <peng.fan@nxp....> |
Commiter | Stefano Babic |
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>
@@ -1774,11 +1774,11 @@ static int eqos_remove_resources_tegra186(struct udevice *dev) | ||
1774 | 1774 | |
1775 | 1775 | static int eqos_remove_resources_stm32(struct udevice *dev) |
1776 | 1776 | { |
1777 | -#ifdef CONFIG_CLK | |
1778 | 1777 | struct eqos_priv *eqos = dev_get_priv(dev); |
1779 | 1778 | |
1780 | 1779 | debug("%s(dev=%p):\n", __func__, dev); |
1781 | 1780 | |
1781 | +#ifdef CONFIG_CLK | |
1782 | 1782 | clk_free(&eqos->clk_tx); |
1783 | 1783 | clk_free(&eqos->clk_rx); |
1784 | 1784 | clk_free(&eqos->clk_master_bus); |