[PATCH 6.17 019/146] team: Move team device type change at the end of team_port_add