diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-31 03:16:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-31 03:16:01 +0200 |
commit | 3745b5003108f89e708cb04be8ee6db096754b8e (patch) | |
tree | d8a8afd8f70b507bc58d0f60a21728f1e2bfb1b7 /src | |
parent | 801f44bb22a499f18889b4f5fd29cbb0298c8d98 (diff) |
logind: use syspath instead of sysname to identify fb devices since udlfb got fixed now
Diffstat (limited to 'src')
-rw-r--r-- | src/logind.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/logind.c b/src/logind.c index b84242e1ed..1aad48d2dc 100644 --- a/src/logind.c +++ b/src/logind.c @@ -274,8 +274,7 @@ int manager_process_seat_device(Manager *m, struct udev_device *d) { if (streq_ptr(udev_device_get_action(d), "remove")) { - /* FIXME: use syspath instead of sysname here, as soon as fb driver is fixed */ - device = hashmap_get(m->devices, udev_device_get_sysname(d)); + device = hashmap_get(m->devices, udev_device_get_syspath(d)); if (!device) return 0; @@ -295,7 +294,7 @@ int manager_process_seat_device(Manager *m, struct udev_device *d) { return 0; } - r = manager_add_device(m, udev_device_get_sysname(d), &device); + r = manager_add_device(m, udev_device_get_syspath(d), &device); if (r < 0) return r; |