diff options
author | Jonas Bonn <jonas@southpole.se> | 2017-03-28 23:54:13 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2017-03-29 09:55:51 -0500 |
commit | 1b28cb5cc6d747ff45f234dfac287a6fb8e0c1c7 (patch) | |
tree | 5741eb18c4f9ced4976b15fdf762374e6f982c5e /plugins/udevng.c | |
parent | 90c8885f4ff6a6c902465eefad5529c351439f06 (diff) | |
download | ofono-1b28cb5cc6d747ff45f234dfac287a6fb8e0c1c7.tar.gz |
udevng: hook up legacy devices
...and disable old udev code by shorting it out in it's init() function.
The check_device function is augmented to differentiate between USB
and serial devices:
- if the device sits on a USB bus, the device is handled as before
- if not, an attempt is made to handle the device as a serial device
Diffstat (limited to 'plugins/udevng.c')
-rw-r--r-- | plugins/udevng.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/udevng.c b/plugins/udevng.c index a9f3f233..ac46c08a 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -1562,6 +1562,9 @@ static void check_device(struct udev_device *device) if ((g_str_equal(bus, "usb") == TRUE) || (g_str_equal(bus, "usbmisc") == TRUE)) check_usb_device(device); + else + add_serial_device(device); + } static gboolean create_modem(gpointer key, gpointer value, gpointer user_data) |