]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: tsec: Mark tsec_get_interface as __maybe_unused
authorRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:49:02 +0000 (18:49 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:55 +0000 (18:50 +0300)
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>
drivers/net/tsec.c

index ee820aae15efd1512de3349e5aabb52ecef47d53..260ae88d999432097a4e64a716a8d01407c4f971 100644 (file)
@@ -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;