initialize ctrl_dir in unload_device_tree