mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-04 20:13:22 +00:00
trivial: fu-udev-device: create another instance ID for the driver
This commit is contained in:
parent
f6b48edebf
commit
e36d3e3faa
@ -335,6 +335,17 @@ fu_udev_device_probe (FuDevice *device, GError **error)
|
||||
FU_DEVICE_INSTANCE_FLAG_ONLY_QUIRKS);
|
||||
}
|
||||
|
||||
/* add the driver */
|
||||
tmp = g_udev_device_get_driver (priv->udev_device);
|
||||
if (tmp != NULL) {
|
||||
g_autofree gchar *devid = NULL;
|
||||
devid = g_strdup_printf ("%s\\DRIVER_%s",
|
||||
subsystem,
|
||||
tmp);
|
||||
fu_device_add_instance_id_full (device, devid,
|
||||
FU_DEVICE_INSTANCE_FLAG_ONLY_QUIRKS);
|
||||
}
|
||||
|
||||
/* add subsystem to match in plugins */
|
||||
if (subsystem != NULL) {
|
||||
fu_device_add_instance_id_full (device, subsystem,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user