Surgery

In a patient of 8 years having history of trauma at the age of 5 years. The TMJ gets ankylosed, what should be treatment