Prosecutors were suspicious of the timing, arguing that 30 minutes before sentencing is not the time for a defendant to enroll in residential rehab.

The judge agreed to rescind the bench warrant and reinstate the $35,000 bond on the condition that O'Neal not leave the rehab program and surrender his drivers license.

“There’s no messing around Mr. O’Neal. The ball’s in your court,” she said.

Sentencing has been continued until Feb. 3.

His lawyers said at the time of the 2011 crash that he had been on some of the drugs as treatment for his degenerative bone disease and that he was en route to help his brother Redmond, who himself had just been arrested with heroin in his car.

Griffin O'Neal's famous father Ryan was arrested, but released, back in 2006 for assaulting his son.

Keep up to date on breaking news: Follow us on Twitter @nbcsandiego, fan us on Facebook, sign up for our breaking news e-mail alerts or text SDBREAKING to 622339 to receive text messages for local breaking news. (For more info, text HELP. To end, text STOP. Message and data rates may apply.)