mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user