mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 23:07:39 +00:00
flashrom: Do not attempt to change the physical ID after setup()
This commit is contained in:
parent
f9e9e087d4
commit
a87440947d
@ -109,15 +109,18 @@ static gboolean
|
|||||||
fu_flashrom_device_probe (FuDevice *device, GError **error)
|
fu_flashrom_device_probe (FuDevice *device, GError **error)
|
||||||
{
|
{
|
||||||
const gchar *dev_name = NULL;
|
const gchar *dev_name = NULL;
|
||||||
g_autofree gchar *path = NULL;
|
const gchar *sysfs_path = NULL;
|
||||||
|
|
||||||
/* FuUdevDevice->probe */
|
/* FuUdevDevice->probe */
|
||||||
if (!FU_DEVICE_CLASS (fu_flashrom_device_parent_class)->probe (device, error))
|
if (!FU_DEVICE_CLASS (fu_flashrom_device_parent_class)->probe (device, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
path = g_strdup_printf ("DEVNAME=%s",
|
sysfs_path = fu_udev_device_get_sysfs_path (FU_UDEV_DEVICE (device));
|
||||||
fu_udev_device_get_sysfs_path (FU_UDEV_DEVICE (device)));
|
if (sysfs_path != NULL) {
|
||||||
fu_device_set_physical_id (device, path);
|
g_autofree gchar *physical_id = NULL;
|
||||||
|
physical_id = g_strdup_printf ("DEVNAME=%s", sysfs_path);
|
||||||
|
fu_device_set_physical_id (device, physical_id);
|
||||||
|
}
|
||||||
dev_name = fu_udev_device_get_sysfs_attr (FU_UDEV_DEVICE (device), "name", NULL);
|
dev_name = fu_udev_device_get_sysfs_attr (FU_UDEV_DEVICE (device), "name", NULL);
|
||||||
if (dev_name != NULL) {
|
if (dev_name != NULL) {
|
||||||
fu_device_add_instance_id_full (device, dev_name,
|
fu_device_add_instance_id_full (device, dev_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user