Patch below switches both /proc/bus/pci/devices and /proc/pcito seq_file (same iterator). Results: a) lots of crap had disappeared. b) /proc/pci/bus/devices can contain more than 3Kb (current treeis limited to that and it's Not Good(tm)) c) code is procfs-agnostic now (i.e. we use procfs only fordirectory operations)

Unrelated obvious fix is in pci_proc_detach_bus() - it had wrongcheck (apparently copied from pci_proc_attach_bus(); when we want tocreate something it makes sense to check that it doesn't exist, but ondestruction we want the opposite ;-)

It works here and applies both to 2.4.15-pre* and 2.4.13-ac*.Please, test - it's pretty straightforward and if there is no complaintsI'm submitting that for inclusion into the tree.