diff options
author | Tom Bechtold <toabctl@googlemail.com> | 2011-02-10 12:07:54 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-02-10 12:07:54 -0600 |
commit | 92e4127c7dc3726e0bdb4beea64246bd7c420d9f (patch) | |
tree | ad7d182ecf313be7fe64f18b764613e0bc8602f4 /src | |
parent | 8f223f45f9e0c81fc9267b830c7c05b9aa731f2a (diff) |
core: allow platform devices without a VID/PID
Since platform devices don't usually have them.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-plugin-base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index 8d32e2a5..da8bc034 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -933,6 +933,10 @@ mm_plugin_base_get_device_ids (MMPluginBase *self, pid = g_udev_device_get_sysfs_attr (parent, "card_id"); if (!vid || !pid) goto out; + } else if (!strcmp (parent_subsys, "platform")) { + /* Platform devices don't usually have a VID/PID */ + success = TRUE; + goto out; } } } |