From: Cagle, John (ISS-Houston) [mailto:john.cagle-VXdhtT5mjnY@public.gmane.org]
Actually, all the other client drivers had code to remove
the class proc entry -- it was only missing from button.c's
unload logic.
I think they're not quite right...
quoted
I think the best thing is to make the semantics "the proc dir
is there if the driver is loaded, even with no devices
present" instead of "the proc dir is there only if an actual
instance of the device is present".
This allows us to move the creation of the dir to the driver
init function, instead of the device add function.
That does sound like a cleaner approach. Let me try it out
and see what the patch looks like.
I've generated the attached patch (against 2.4-acpi but should apply to
2.5). Does it fix the problem? If not, it should at least be a starting
point.
Regards -- Andy