Grey’s Anatomy star Eric Dane, who is expecting his second child with wife Rebecca Gayheart, quietly checked himself into rehab last month as a “preventative measure” to deal with a dependency on painkillers, according to Star magazine.

“Eric felt things spiraling out of control and decided he needed to get some help,” a source says.

The actor’s rep confirms the rehab stint, saying in a statement that Dane “voluntarily checked himself into a treatment facility to help him get off of pain medication that he was prescribed for a sports injury that he suffered over the recent hiatus. He reports back to work next week. Business as usual.”