public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* struct pci_bus, no release() function?
@ 2004-08-02 20:15 John Rose
  2004-08-09  6:45 ` [Pcihpd-discuss] " Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: John Rose @ 2004-08-02 20:15 UTC (permalink / raw)
  To: Greg KH; +Cc: lkml, Hotplug List

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-10 18:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-02 20:15 struct pci_bus, no release() function? John Rose
2004-08-09  6:45 ` [Pcihpd-discuss] " Greg KH
2004-08-09 16:34   ` John Rose
2004-08-10 16:30     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox