diff options
| author | Michael Biebl <biebl@debian.org> | 2011-05-27 19:57:25 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2011-05-27 19:57:25 +0200 |
| commit | d465e5fac63f36bcf4069e36827f4b62c494556d (patch) | |
| tree | 65f4ba9567e091233cdf3279f7ba3c9479e74a1c /src/nm-udev-manager.c | |
| parent | 9f806e97a24bba61417ae312fcc0da40914266fb (diff) | |
Imported Upstream version 0.8.9997 upstream/0.8.9997
Diffstat (limited to 'src/nm-udev-manager.c')
| -rw-r--r-- | src/nm-udev-manager.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nm-udev-manager.c b/src/nm-udev-manager.c index 41a4e15b..e0795e81 100644 --- a/src/nm-udev-manager.c +++ b/src/nm-udev-manager.c @@ -439,9 +439,13 @@ device_creator (NMUdevManager *manager, if (parent) { driver = g_udev_device_get_driver (parent); if (!driver) { - /* try the grandparent only if it's an ibmebus device */ + /* try the grandparent if it's an ibmebus device or if the + * subsys is NULL which usually indicates some sort of + * platform device like a 'gadget' net interface. + */ subsys = g_udev_device_get_subsystem (parent); - if (subsys && !strcmp (subsys, "ibmebus")) { + if ( (g_strcmp0 (subsys, "ibmebus") == 0) + || (subsys == NULL)) { grandparent = g_udev_device_get_parent (parent); if (grandparent) driver = g_udev_device_get_driver (grandparent); |