Clean up device tree