A Los Angeles court has finalized the divorce between troubled pop star Britney Spears and Kevin Federline, less than three years since they married, the singer's lawyer said.
Spears, 25, and Federline, will share custody of their two sons, 23-month-old Sean Preston and 11-month-old Jayden James, according to Spears' attorney Laura Wasser.
"I think she's okay with the terms," Wasser told reporters on Monday outside the Los Angeles court. "I think they were each hoping they would have more custody time, but hopefully that can be worked out," Wasser said.
The financial details of the divorce remain secret, Wasser said.
Spears filed for divorce on November 6, less than two months after the birth of their second son. She had cited "irreconcilable differences" in court documents.
Spears and Federline, a dancer and aspiring rapper, married on October 6, 2004.
Spears, who for five years was the top-earning singer in the world until she was overtaken by Madonna, has made headlines for bizarre and erratic behavior ever since her split last year with Federline.
She was photographed partying hard in Los Angeles and Las Vegas -- often pantyless -- and bizarrely shaved her head in February shortly before entering a rehabilitation clinic.