diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-11 12:40:55 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-06 20:06:46 +0200 |
commit | 1ca46cc0ec2fd407f3c70dcac11279dec4cc61d8 (patch) | |
tree | 0fb2bd7770d8c8cb95182fde383bb45204568eec /plugins/wavecom | |
parent | b64f52cddc9dc1f49f167d010a8150671d0dd44a (diff) |
plugins: use default port grabbing on those plugins without special requirements
Diffstat (limited to 'plugins/wavecom')
-rw-r--r-- | plugins/wavecom/mm-plugin-wavecom.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/plugins/wavecom/mm-plugin-wavecom.c b/plugins/wavecom/mm-plugin-wavecom.c index f55ccad1..94fc43ec 100644 --- a/plugins/wavecom/mm-plugin-wavecom.c +++ b/plugins/wavecom/mm-plugin-wavecom.c @@ -53,29 +53,6 @@ create_modem (MMPlugin *self, product)); } -static gboolean -grab_port (MMPlugin *self, - MMBaseModem *modem, - MMPortProbe *probe, - GError **error) -{ - /* The Wavecom plugin cannot do anything with non-AT ports */ - if (!mm_port_probe_is_at (probe)) { - g_set_error_literal (error, - MM_CORE_ERROR, - MM_CORE_ERROR_UNSUPPORTED, - "Ignoring non-AT 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_TYPE_AT, /* we only allow AT ports here */ - MM_AT_PORT_FLAG_NONE, - error); -} - /*****************************************************************************/ G_MODULE_EXPORT MMPlugin * @@ -104,5 +81,4 @@ mm_plugin_wavecom_class_init (MMPluginWavecomClass *klass) MMPluginClass *plugin_class = MM_PLUGIN_CLASS (klass); plugin_class->create_modem = create_modem; - plugin_class->grab_port = grab_port; } |