From b172fb8f6371a472b821c4345cc4067b613fc226 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 4 Sep 2018 15:22:21 -0500 Subject: [PATCH] fu-device: Add platform ID after creating GUID for children This fixes issues where the child gets the same ID as the parent. --- src/fu-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fu-device.c b/src/fu-device.c index 401f910e5..7d2c3e4e6 100644 --- a/src/fu-device.c +++ b/src/fu-device.c @@ -465,9 +465,9 @@ fu_device_add_child_by_type_guid (FuDevice *self, GType type, const gchar *guid) child = g_object_new (type, "quirks", priv->quirks, NULL); + fu_device_add_guid (child, guid); if (fu_device_get_platform_id (self) != NULL) fu_device_set_platform_id (child, fu_device_get_platform_id (self)); - fu_device_add_guid (child, guid); fu_device_add_child (self, child); }