The US actor and comedian was embroiled in a controversy over homophobic comments.