git: 34d5a6a3dc6b - main - Last change for mgb(4) needed for IfAPI conversion

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Tue, 31 Jan 2023 21:53:45 UTC
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=34d5a6a3dc6b8a29499b4723168d7450b17dfd01

commit 34d5a6a3dc6b8a29499b4723168d7450b17dfd01
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-01-24 20:58:00 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2023-01-31 21:26:33 +0000

    Last change for mgb(4) needed for IfAPI conversion
    
    Sponsored by:   Juniper Networks, Inc.
---
 sys/dev/mgb/if_mgb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c
index 8c58b965b7df..3479ffb20095 100644
--- a/sys/dev/mgb/if_mgb.c
+++ b/sys/dev/mgb/if_mgb.c
@@ -513,7 +513,7 @@ mgb_media_change(if_t ifp)
 
 	needs_reset = mii_mediachg(miid);
 	if (needs_reset != 0)
-		ifp->if_init(ctx);
+		if_init(ifp, ctx);
 	return (needs_reset);
 }