updated 02/04/2011 AT 2:00 PM ET
•originally published 02/04/2011 AT 2:20 PM ET
Grammy nominee Bruno Mars is ready to put his cocaine-related arrest behind him.
The “Just The Way You Are” singer appeared before a Las Vegas judge on Friday, waiving his preliminary hearing. He is due back in court on Feb. 14, where he is expected to plead guilty to a felony cocaine charge, part of a plea bargain that will keep him from serving jail time in Las Vegas.
As part of the deal the singer-songwriter will pay a $2,000 fine and complete drug counseling and 200 hours of community service.
As long as Mars, born Peter Hernandez, stays out of trouble for a year, his record will be conviction-free.
The cocaine charge stemmed from an arrest last September after Mars was found allegedly using drugs in a bathroom inside the Hard Rock Hotel. A police report said Mars had 2.6 grams of cocaine on his person, but he told police he had never used drugs prior to that night.