mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
net: dwc_eth_qos: Drop unused dm_gpio_free() on STM32
The dm_gpio_free() is never called, because for stm32, the phy_reset_gpio pointer is never valid. This is because only tegra186 ever claims the phy_reset_gpio, all other platforms use the PHY framework to reset the PHY instead. Drop the dm_gpio_free() and dm_gpio_is_valid(). Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
895b05ce02
commit
2e0bade785
1 changed files with 1 additions and 4 deletions
|
@ -1493,7 +1493,7 @@ static int eqos_remove_resources_tegra186(struct udevice *dev)
|
||||||
|
|
||||||
static int eqos_remove_resources_stm32(struct udevice *dev)
|
static int eqos_remove_resources_stm32(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct eqos_priv *eqos = dev_get_priv(dev);
|
struct eqos_priv * __maybe_unused eqos = dev_get_priv(dev);
|
||||||
|
|
||||||
debug("%s(dev=%p):\n", __func__, dev);
|
debug("%s(dev=%p):\n", __func__, dev);
|
||||||
|
|
||||||
|
@ -1505,9 +1505,6 @@ static int eqos_remove_resources_stm32(struct udevice *dev)
|
||||||
clk_free(&eqos->clk_ck);
|
clk_free(&eqos->clk_ck);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (dm_gpio_is_valid(&eqos->phy_reset_gpio))
|
|
||||||
dm_gpio_free(dev, &eqos->phy_reset_gpio);
|
|
||||||
|
|
||||||
debug("%s: OK\n", __func__);
|
debug("%s: OK\n", __func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue