summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-08-06 13:07:37 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-08-06 13:07:37 +0200
commit40cf7449fec0a89532ea5659fb35fb0c1af009ea (patch)
tree59117cb62c8574091301aa7829baa38774142517
parent787f14229acf3cfd2e028264d42b492ed237ef73 (diff)
downloadofono-40cf7449fec0a89532ea5659fb35fb0c1af009ea.tar.bz2
udev: Use ID_USB_INTERFACE_NUM property instead bInterfaceNumber
-rw-r--r--plugins/udevng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 651782fa..b02399ec 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -350,7 +350,7 @@ static void add_device(const char *syspath, const char *devname,
return;
interface = udev_device_get_property_value(intf, "INTERFACE");
- number = udev_device_get_sysattr_value(intf, "bInterfaceNumber");
+ number = udev_device_get_property_value(device, "ID_USB_INTERFACE_NUM");
label = udev_device_get_property_value(device, "OFONO_LABEL");