mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
net: tsec: Mark tsec_get_interface as __maybe_unused
Non DM builds fail with the following error: drivers/net/tsec.c:641:24: error: 'tsec_get_interface' defined but not used [-Werror=unused-function] 641 | static phy_interface_t tsec_get_interface(struct tsec_private *priv) Fix that. Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
c098a8376c
commit
596ec9ba5e
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ static int tsec_init(struct udevice *dev)
|
|||
return priv->phydev->link ? 0 : -1;
|
||||
}
|
||||
|
||||
static phy_interface_t tsec_get_interface(struct tsec_private *priv)
|
||||
static phy_interface_t __maybe_unused tsec_get_interface(struct tsec_private *priv)
|
||||
{
|
||||
struct tsec __iomem *regs = priv->regs;
|
||||
u32 ecntrl;
|
||||
|
|
Loading…
Add table
Reference in a new issue