diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-26 12:56:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-26 13:03:49 +0200 |
commit | 1887d75e27a238766c78e8ecd44dbe162ce7f79f (patch) | |
tree | 6842aa7927b8fcb360b374a6f65c9833e2a1935a | |
parent | 53a53766bfc47dab68f372458a7bb54c72f1f5f0 (diff) |
option: fix reading port-specific setup file
The `physdev' stored in the probe is the sysfs path of the parent device, that
owning all ports. We need to build the setup file path using the port's sysfs
path instead.
-rw-r--r-- | plugins/mm-plugin-hso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mm-plugin-hso.c b/plugins/mm-plugin-hso.c index 2b1a64c2..ca0b6025 100644 --- a/plugins/mm-plugin-hso.c +++ b/plugins/mm-plugin-hso.c @@ -142,7 +142,7 @@ grab_port (MMPluginBase *base, } } - sysfs_path = mm_plugin_base_supports_task_get_physdev_path (task); + sysfs_path = g_udev_device_get_sysfs_path (port); /* Detect port types */ if (!strcmp (subsys, "tty")) { @@ -166,7 +166,7 @@ grab_port (MMPluginBase *base, ptype = mm_plugin_base_probed_capabilities_to_port_type (caps); if (!existing) { - modem = mm_modem_hso_new (sysfs_path, + modem = mm_modem_hso_new (mm_plugin_base_supports_task_get_physdev_path (task), mm_plugin_base_supports_task_get_driver (task), mm_plugin_get_name (MM_PLUGIN (base)), vendor, |