diff options
author | steev <steev@cypher.ubersekret.info> | 2009-02-05 14:23:38 -0600 |
---|---|---|
committer | steev <steev@cypher.ubersekret.info> | 2009-02-05 14:23:38 -0600 |
commit | 8a34b074db1e60dbdd46c64120ab01eb17252b90 (patch) | |
tree | 2911bab58cb712c73c9e79b671c427231517a5c2 /hal-0.5.11-patches/0014-fixed-device-removage.patch | |
parent | initialize repository (diff) | |
download | gentoo-hal-master.tar.gz gentoo-hal-master.tar.bz2 gentoo-hal-master.zip |
Diffstat (limited to 'hal-0.5.11-patches/0014-fixed-device-removage.patch')
-rw-r--r-- | hal-0.5.11-patches/0014-fixed-device-removage.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/hal-0.5.11-patches/0014-fixed-device-removage.patch b/hal-0.5.11-patches/0014-fixed-device-removage.patch new file mode 100644 index 00000000..5cec3740 --- /dev/null +++ b/hal-0.5.11-patches/0014-fixed-device-removage.patch @@ -0,0 +1,32 @@ +From c211f841d9b1d377256b5f8338910aa30e3ffa58 Mon Sep 17 00:00:00 2001 +From: Danny Kukawka <danny.kukawka@web.de> +Date: Mon, 11 Aug 2008 16:12:45 +0200 +Subject: [PATCH 14/48] fixed device removage + +Fixed device removage. Remove childs maually only if they have no +sysfs_path which means they are spawned normaly. +--- + hald/linux/device.c | 7 +++++-- + 1 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/hald/linux/device.c b/hald/linux/device.c +index 8bbe949..20cbb06 100644 +--- a/hald/linux/device.c ++++ b/hald/linux/device.c +@@ -4505,8 +4505,11 @@ hotplug_event_begin_remove_dev (const gchar *subsystem, const gchar *sysfs_path, + + for (tmp = children; tmp != NULL; tmp = g_slist_next (tmp)) { + child = HAL_DEVICE (tmp->data); +- HAL_INFO(("Remove now: %s as child of: %s", hal_device_get_udi(child), hal_device_get_udi(d))); +- hal_util_callout_device_remove (child, dev_callouts_remove_child_done, NULL, NULL); ++ /* find childs without sysfs path as e.g. spawned devices*/ ++ if (hal_device_property_get_string(child, "linux.sysfs_path") == NULL) { ++ HAL_INFO(("Remove now: %s as child of: %s", hal_device_get_udi(child), hal_device_get_udi(d))); ++ hal_util_callout_device_remove (child, dev_callouts_remove_child_done, NULL, NULL); ++ } + } + g_slist_free (children); + +-- +1.6.1.2 + |