From 1ca46cc0ec2fd407f3c70dcac11279dec4cc61d8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 11 Jul 2012 12:40:55 +0200 Subject: plugins: use default port grabbing on those plugins without special requirements --- plugins/gobi/mm-plugin-gobi.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'plugins/gobi/mm-plugin-gobi.c') diff --git a/plugins/gobi/mm-plugin-gobi.c b/plugins/gobi/mm-plugin-gobi.c index 8181e2af..377069e0 100644 --- a/plugins/gobi/mm-plugin-gobi.c +++ b/plugins/gobi/mm-plugin-gobi.c @@ -45,29 +45,6 @@ create_modem (MMPlugin *self, product)); } -static gboolean -grab_port (MMPlugin *self, - MMBaseModem *modem, - MMPortProbe *probe, - GError **error) -{ - /* The Gobi plugin only handles AT and QCDM ports (for now) */ - if (!mm_port_probe_is_at (probe) && !mm_port_probe_is_qcdm (probe)) { - g_set_error_literal (error, - MM_CORE_ERROR, - MM_CORE_ERROR_UNSUPPORTED, - "Ignoring non-AT/non-QCDM port"); - return FALSE; - } - - return mm_base_modem_grab_port (modem, - mm_port_probe_get_port_subsys (probe), - mm_port_probe_get_port_name (probe), - mm_port_probe_get_port_type (probe), - MM_AT_PORT_FLAG_NONE, - error); -} - /*****************************************************************************/ G_MODULE_EXPORT MMPlugin * @@ -97,5 +74,4 @@ mm_plugin_gobi_class_init (MMPluginGobiClass *klass) MMPluginClass *plugin_class = MM_PLUGIN_CLASS (klass); plugin_class->create_modem = create_modem; - plugin_class->grab_port = grab_port; } -- cgit v1.2.3-70-g09d2