Bruno Mars may still be flying high from his Grammy performance, but a court appearance Wednesday morning sobered him up pretty quickly. The smooth crooner pleaded guilty to cocaine possession stemming from a 2010 arrest and ended up taking a pretty sweet plea deal.

According to E! News, Mars, whose real name is Peter Hernandez, was busted last September for possession of 2.6 grams of cocaine in a Las Vegas restroom. He faced possible felony charges but instead opted to take a plea deal.

"Bruno is very appreciative that the charges are going to be dismissed," his lawyer Blair Berk said.