cleanup device tree