aboutsummaryrefslogtreecommitdiff
path: root/src/mm-device.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-21 11:32:24 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-29 17:26:46 +0200
commit494a70a8ffff4a50d0a00e99e964165054ff36aa (patch)
tree1e4c4ff6bc9f484b0e4fac4ab06743d8dd108de9 /src/mm-device.c
parent8cb021293ce0aa316028339c8f213c0bf72c9158 (diff)
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.
Diffstat (limited to 'src/mm-device.c')
-rw-r--r--src/mm-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-device.c b/src/mm-device.c
index faf7c942..06755722 100644
--- a/src/mm-device.c
+++ b/src/mm-device.c
@@ -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;