mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
udev: hwdb - try reading modalias for usb before falling back to the composed one
This commit is contained in:
@@ -102,12 +102,11 @@ static int udev_builtin_hwdb_search(struct udev_device *dev, struct udev_device
|
||||
if (subsystem && !streq(dsubsys, subsystem))
|
||||
continue;
|
||||
|
||||
/* the usb_device does not have a modalias, compose one */
|
||||
if (streq(dsubsys, "usb"))
|
||||
modalias = modalias_usb(d, s, sizeof(s));
|
||||
modalias = udev_device_get_property_value(d, "MODALIAS");
|
||||
|
||||
if (!modalias)
|
||||
modalias = udev_device_get_property_value(d, "MODALIAS");
|
||||
/* the usb_device does not have a modalias, compose one */
|
||||
if (!modalias && streq(dsubsys, "usb"))
|
||||
modalias = modalias_usb(d, s, sizeof(s));
|
||||
|
||||
if (!modalias)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user