diff options
Diffstat (limited to 'pcilib/plugin.c')
-rw-r--r-- | pcilib/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/plugin.c b/pcilib/plugin.c index 12dbf1d..3202e95 100644 --- a/pcilib/plugin.c +++ b/pcilib/plugin.c @@ -53,7 +53,7 @@ const pcilib_model_description_t *pcilib_get_plugin_model(pcilib_t *pcilib, void model_info = ((const pcilib_model_description_t *(*)(pcilib_t *pcilib, unsigned short vendor_id, unsigned short device_id, const char *model))get_model)(pcilib, vendor_id, device_id, model); if (!model_info) return model_info; - if (model_info->interface_version != PCILIB_EVENT_INTERFACE_VERSION) { + if ((PCILIB_VERSION_GET_MAJOR(model_info->interface_version) != PCILIB_VERSION_MAJOR)||(PCILIB_VERSION_GET_MINOR(model_info->interface_version) != PCILIB_VERSION_MINOR)) { pcilib_warning("Plugin %s exposes outdated interface version (%lu), pcitool supports (%lu)", model_info->name, model_info->interface_version, PCILIB_EVENT_INTERFACE_VERSION); return NULL; } |