Commit 697f5374 authored by Christian Kellner's avatar Christian Kellner
Browse files

device: use new helper to get the device uid

Instead of directly getting the unique_id via the udev device, use
the new common syfs helper.
parent f7c09cb3
......@@ -1209,13 +1209,9 @@ bolt_device_new_for_udev (struct udev_device *udev,
g_return_val_if_fail (domain != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
uid = udev_device_get_sysattr_value (udev, "unique_id");
uid = bolt_sysfs_device_get_unique_id (udev, error);
if (uid == NULL)
g_set_error (error, BOLT_ERROR, BOLT_ERROR_UDEV,
"could not get unique_id for udev");
return NULL;
return NULL;
name = read_sysattr_name (udev, "device", error);
if (name == NULL)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment