Kevin Federline has agreed to give ex-wife Britney Spears visitation rights with their two young sons, his lawyer said Friday.

Federline attorney Mark Vincent Kaplan said the couple has "agreed to a modification of the court's order," that had stripped Spears of her visitation rights.

Kaplan's statement did not provide more details.

A call to a Spears' attorney was not immediately returned.

A court commissioner gave ex-husband Kevin Federline sole physical and legal custody of the former couple's two little boys and suspended the troubled pop star's visitation rights on Jan. 4.

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

Spears and her estate, estimated to be worth $100 million, were placed under a temporary conservatorship after she was taken to UCLA Medical Center on Jan. 31. Conservatorships are granted for people deemed unable to care for themselves or their affairs.

Leading up the hospitalizations, Spears had been in a downward spiral of bizarre behavior since divorcing Federline in November 2006. She shaved her head, was seen in public without underwear, ran over a celebrity photographer's foot and attacked a vehicle with an umbrella, among other strange behaviors.