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:
@@ -188,6 +188,10 @@ apply_pre_probing_filters (MMPlugin *self,
|
||||
for (i = 0; self->priv->subsystems[i]; i++) {
|
||||
if (g_str_equal (subsys, self->priv->subsystems[i]))
|
||||
break;
|
||||
/* New kernels may report as 'usbmisc' the subsystem */
|
||||
else if (g_str_equal (self->priv->subsystems[i], "usb") &&
|
||||
g_str_equal (subsys, "usbmisc"))
|
||||
break;
|
||||
}
|
||||
|
||||
/* If we didn't match any subsystem: unsupported */
|
||||
|
Reference in New Issue
Block a user