clean up device tree