The role of a Wali is most discussed with respect to girls/women until marriage.
However, a minor boy has a wali as well, and the succession of the father becomes relevant when the father dies early.
The wali, father or not, has to care for the child. Is there a particular occasion when this role ends or does it just cease to be significant?