• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision00fcfa81cbf7da5397bb745f934400f3192804d7 (tree)
Zeit2022-07-26 18:29:01
AutorPeng Fan <peng.fan@nxp....>
CommiterStefano Babic

Log Message

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>

Ändern Zusammenfassung

Diff

--- 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)
17741774
17751775 static int eqos_remove_resources_stm32(struct udevice *dev)
17761776 {
1777-#ifdef CONFIG_CLK
17781777 struct eqos_priv *eqos = dev_get_priv(dev);
17791778
17801779 debug("%s(dev=%p):\n", __func__, dev);
17811780
1781+#ifdef CONFIG_CLK
17821782 clk_free(&eqos->clk_tx);
17831783 clk_free(&eqos->clk_rx);
17841784 clk_free(&eqos->clk_master_bus);