diff options
Diffstat (limited to 'plugins/gobi/mm-plugin-gobi.c')
-rw-r--r-- | plugins/gobi/mm-plugin-gobi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/gobi/mm-plugin-gobi.c b/plugins/gobi/mm-plugin-gobi.c index 05151cd9..9498d7a6 100644 --- a/plugins/gobi/mm-plugin-gobi.c +++ b/plugins/gobi/mm-plugin-gobi.c @@ -20,10 +20,13 @@ #include <libmm-common.h> #include "mm-plugin-gobi.h" -#include "mm-broadband-modem-qmi.h" #include "mm-broadband-modem-gobi.h" #include "mm-log.h" +#if defined WITH_QMI +#include "mm-broadband-modem-qmi.h" +#endif + G_DEFINE_TYPE (MMPluginGobi, mm_plugin_gobi, MM_TYPE_PLUGIN) int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION; @@ -40,6 +43,7 @@ create_modem (MMPlugin *self, GList *probes, GError **error) { +#if defined WITH_QMI if (mm_port_probe_list_has_qmi_port (probes)) { mm_dbg ("QMI-powered Gobi modem found..."); return MM_BASE_MODEM (mm_broadband_modem_qmi_new (sysfs_path, @@ -48,6 +52,7 @@ create_modem (MMPlugin *self, vendor, product)); } +#endif return MM_BASE_MODEM (mm_broadband_modem_gobi_new (sysfs_path, drivers, |