trivial: Use DEVPATH for platform UDev devices

This commit is contained in:
Richard Hughes 2020-12-01 12:21:56 +00:00
parent a21e025e46
commit d51f2ec939

View File

@ -1016,6 +1016,7 @@ fu_udev_device_set_physical_id (FuUdevDevice *self, const gchar *subsystems, GEr
} else if (g_strcmp0 (subsystem, "usb") == 0 ||
g_strcmp0 (subsystem, "mmc") == 0 ||
g_strcmp0 (subsystem, "i2c") == 0 ||
g_strcmp0 (subsystem, "platform") == 0 ||
g_strcmp0 (subsystem, "scsi") == 0) {
tmp = g_udev_device_get_property (udev_device, "DEVPATH");
if (tmp == NULL) {