fu-device: Add platform ID after creating GUID for children

This fixes issues where the child gets the same ID as the parent.
This commit is contained in:
Mario Limonciello 2018-09-04 15:22:21 -05:00 committed by Richard Hughes
parent e39801f00d
commit b172fb8f63

View File

@ -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);
}