[PATCH] remove all childs of a device if it get removed

Danny Kukawka danny.kukawka at web.de
Thu Nov 15 05:25:55 PST 2007


Hi,

this patch remove all child-devices of a device which get removed. 

This solves problems e.g. with via fdi rules spawned devices, which currently 
get not removed if their parent device get removed (one example would be the 
Dell related devices, if my other patches go in). 

Currently if the parent get removed they are still there also if they are not 
visible in lshal. This mean also, that all addons of a spawned device (as 
e.g. the dell backlight addon) are still running. This patch should fix it.

Please review,

Danny

 device.c |   31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-remove_spawned_childs.diff
Type: text/x-diff
Size: 2101 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071115/22f1bffa/attachment.diff 


More information about the hal mailing list