Bruno Mars was cleared of a felony cocaine possession charge on Wednesday in Las Vegas, according to the Associated Press.
The singer, whose real name is Peter Hernandez, was arrested in September 2010 at the Hard Rock Hotel & Casino after a bathroom attendant noticed a man taking a long time in a stall with a bag of a white, powdered substance just before 2 a.m., and summoned security.
Police said Mars handed over a bag containing 2.6 grams of cocaine, and told the arresting officer he'd never used drugs before.
Mars, 26, pled guilty to a felony cocaine possession charge back in January 2011. The singer took a plea deal worked out with Las Vegas prosecutors. Mars paid a $2,000 fine, in addition to serving probation and 200 hours of community service.
The other term of the deal was that if he stayed out of trouble for a year, the felony charge would be dismissed.
Attorneys for Mars told a state court judge that Mars has met the terms of the deal, according to the wire service. Clark County District Court Judge Jessie Walsh dismissed the case on January 18.
Mars, best known for hits like "Just The Way You Are" and "The Lazy Song," worked with unspecified children's charities and health-related organizations to complete his community service, his lawyer said on January 17. The singer did not appear in court for the brief.
In an interview with GQ magazine in March 2011, the singer spoke about the arrest and said, "I'm not gonna preach that I'm a role model."
He added, "I'm a [expletive] musician! But I've learned people are watching, so don't do nothing stupid."
Mars is up for six awards at the 2012 Grammy Awards. He will also be performing at the ceremony, which is set to take place on Feb. 12, 2012 and airs live on CBS that day at 8 p.m. ET. Check out the list of nominees here.