You are an expert at summarizing long articles. Proceed to summarize the following text: 
samak sundaravej has ended his bid to return to power as thailand 's prime minister , officials said friday , after a revolt within the ruling party torpedoed his re-election in parliament .
samak ends bid to return as thai pm after revolt