struct pci_bus, no release() function?

From: John Rose
Date: Tue Aug 03 2004 - 00:36:33 EST


At probe time, pci_scan_bus_parented() allocates and registers a struct
device for each PCI bus it scans. This generic device structure never
gets assigned a "release" function.

Attempts to unregister such a PCI Bus at runtime result in a kernel
message like:
Device 'pci0001:00' does not have a release() function, it is broken and
must be fixed.

Are architectures free to assign their own release function for
"devices" associated with struct pci_bus? If so, does this have to
happen at boot, or can it happen right before the remove?

Thanks-
John

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/