Update device to root_device where relevant.