core: handle the 'usb'->'usbmisc' subsystem rename in the kernel
We'll try to cope with getting devices being reported in either 'usb' or 'usbmisc', trying to avoid the need of checking kernel version during runtime.
This commit is contained in:
@@ -140,8 +140,8 @@ get_device_ids (GUdevDevice *device,
|
||||
/* Platform devices don't usually have a VID/PID */
|
||||
success = TRUE;
|
||||
goto out;
|
||||
} else if (!strcmp (parent_subsys, "usb") &&
|
||||
!strcmp (g_udev_device_get_driver (parent), "qmi_wwan")) {
|
||||
} else if (g_str_has_prefix (parent_subsys, "usb") &&
|
||||
g_str_equal (g_udev_device_get_driver (parent), "qmi_wwan")) {
|
||||
/* Need to look for vendor/product in the parent of the QMI device */
|
||||
GUdevDevice *qmi_parent;
|
||||
|
||||
|
Reference in New Issue
Block a user