Singer Chris Brown has had his probation reinstated and has been given a new sentence to perform 1,000 hours of community labor.

A prosecutor agreed Friday to withdraw a request to rescind Brown's probation after he was involved in an alleged hit-and-run accident. That hit-and-run charge was dismissed earlier.

Brown didn't speak during Friday's hearing, other than to agree to the deal worked out in the judge's chambers while he waited in the courtroom.

He was ordered to perform labor such as highway work and graffiti removal.

Brown has been dealing with a series of legal problems since 2009, when he was arrested for assaulting then-girlfriend Rihanna and was first placed on probation.

He has had subsequent run-ins with the law since then, for assault and traffic accidents.