Los Angeles: Britney Spears is to be given visitation rights with her two young sons, ex-husband Kevin Federline's lawyer said on Saturday.

Federline’s attorney Mark Vincent Kaplan said in a statement that the former couple has agreed to a modification of a court order that had stripped Spears of her visitation rights. The statement did not provide more details.

A court commissioner gave Kevin Federline sole physical and legal custody of their two little boys and suspended the pop star's visitation rights on January 4.

Spears has not been allowed to see sons Sean Preston, 2, and Jayden James, 1, since an incident at her home that led to the first of her two hospitalisations in a psychiatric facility this year.