Cleanup device tree