diff mbox series

[v2,3/3] net: tsec: Make redundant_init() static

Message ID 20211101061512.3277805-3-bmeng.cn@gmail.com
State Accepted
Commit 10aaefba52ad8db04c6154ac1f580b7c55ab543c
Delegated to: Ramon Fried
Headers show
Series [v2,1/3] net: dsa: Use true instead of 1 in the set_promisc() call | expand

Commit Message

Bin Meng Nov. 1, 2021, 6:15 a.m. UTC
redundant_init() is only called in the tsec driver. Make it static.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>

---

(no changes since v1)

 drivers/net/tsec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 4354753cab..3dd00a4a40 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -443,7 +443,7 @@  static void tsec_halt(struct udevice *dev)
  * of the eTSEC port initialization sequence,
  * the eTSEC Rx logic may not be properly initialized.
  */
-void redundant_init(struct tsec_private *priv)
+static void redundant_init(struct tsec_private *priv)
 {
 	struct tsec __iomem *regs = priv->regs;
 	uint t, count = 0;