Papua New Guinea's Parliament has repealed controversial laws that were passed during the country's recent constitutional crisis.
During the crisis Mr O'Neill and his supporters passed the Judicial Conduct Act, giving parliament the power to sack senior judges deemed to be biased.
An age limit of 73 was also placed on the office of the prime minister to keep the elderly Sir Michael out.
But Parliament on Wednesday repealed the laws fulfilling a commitment made by Prime Minister O'Neill after he won last year's election.
Since then the two men have put their differences aside and Sir Michael is a member of Mr O'Neill's ruling coalition.