diff options
author | Dan Williams <dcbw@redhat.com> | 2009-07-02 13:48:30 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-07-02 13:48:30 -0400 |
commit | 52da9990eef279bbc349685a7558d26cf4b7893b (patch) | |
tree | f84433872729aafef296eebae46ace57eb9c8d82 /plugins/mm-plugin-option.c | |
parent | 4e7548e496d580f26a763bcdaeca7e7af75d5141 (diff) |
plugins: allow plugins to more easily suggest port types
ZTE modems need to use udev rules to assign port type hints,
so generalize that and port all the plugins over to suggested
port types in the MMModem interface's grab_port() function.
Diffstat (limited to 'plugins/mm-plugin-option.c')
-rw-r--r-- | plugins/mm-plugin-option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mm-plugin-option.c b/plugins/mm-plugin-option.c index 6f4aaa97..520308ce 100644 --- a/plugins/mm-plugin-option.c +++ b/plugins/mm-plugin-option.c @@ -135,7 +135,7 @@ grab_port (MMPluginBase *base, } if (modem) { - if (!mm_modem_grab_port (modem, subsys, name, NULL, error)) { + if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) { g_object_unref (modem); return NULL; } @@ -143,7 +143,7 @@ grab_port (MMPluginBase *base, } else { if (caps & MM_PLUGIN_BASE_PORT_CAP_GSM) { modem = existing; - if (!mm_modem_grab_port (modem, subsys, name, NULL, error)) + if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) return NULL; } } |