core: allow platform devices without a VID/PID

Since platform devices don't usually have them.
This commit is contained in:
Tom Bechtold
2011-02-10 12:07:54 -06:00
committed by Dan Williams
parent 8f223f45f9
commit 92e4127c7d
+4
View File
@@ -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;
}
}
}