From d1c9d4bc6a6925fc3b39c1c4062c2b9082a4e161 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 1 Sep 2015 14:43:57 +0200 Subject: [PATCH] device: apply settings when existing device becomes external Make sure device settings are applied when existing device becomes external Signed-off-by: Hans Dedecker --- device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/device.c b/device.c index 4a8db70..0d73138 100644 --- a/device.c +++ b/device.c @@ -446,6 +446,7 @@ device_get(const char *name, int create) dev = avl_find_element(&devices, name, dev, avl); if (dev) { if (create > 1 && !dev->external) { + system_if_apply_settings(dev, &dev->settings, dev->settings.flags); dev->external = true; device_set_present(dev, true); } -- 2.25.1