manager: handle PNP-connected devices too

I have a modem that is connected to motherboard's built-in serial port. Its
parent is listed in udev as "pnp" so this patch handles that situation.
This commit is contained in:
Dmitry Ivanyushin
2013-06-07 16:26:34 -05:00
committed by Dan Williams
parent 8d07040207
commit 6c098dd9f5
+5
View File
@@ -160,6 +160,7 @@ find_physical_device (GUdevDevice *child)
const char *subsys, *type;
guint32 i = 0;
gboolean is_usb = FALSE, is_pci = FALSE, is_pcmcia = FALSE, is_platform = FALSE;
gboolean is_pnp = FALSE;
g_return_val_if_fail (child != NULL, NULL);
@@ -203,6 +204,10 @@ find_physical_device (GUdevDevice *child)
is_pci = TRUE;
physdev = iter;
break;
} else if (is_pnp || !strcmp (subsys, "pnp")) {
is_pnp = TRUE;
physdev = iter;
break;
}
}