* Re: [PATCH] PCI: move pci_present() into drivers/pci/search.c
[not found] <200306052322.h55NMmEg019146@hera.kernel.org>
@ 2003-06-06 4:50 ` Jeff Garzik
2003-06-06 5:27 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2003-06-06 4:50 UTC (permalink / raw)
To: greg; +Cc: Linux Kernel Mailing List
Linux Kernel Mailing List wrote:
> ChangeSet 1.1317, 2003/06/05 12:04:33-07:00, greg@kroah.com
>
> [PATCH] PCI: move pci_present() into drivers/pci/search.c
>
> This will let not have to export the pci_devices variable.
pci_present() should be killed. It's left over from 2.0 or 1.2 days,
and has no meaning anymore.
The old-kernel use was to determine if a PCI bus. Drivers had to check
if a PCI bus was present, before probing for a PCI device using the
old-old find-by-slot-and-busid method of PCI bus probing. As the
now-old method of PCI bus probing (pci_find_device) and the current PCI
API both provide correct behavior when no PCI bus is present,
pci_present() itself no longer has any meaning and is entirely redundant.
At the very least, we should use the gcc "deprecated" attribute on
pci_present definitions, both normal and no-op.
IMO pci_present should go before 2.6.0... it's lived long enough.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: move pci_present() into drivers/pci/search.c
2003-06-06 4:50 ` [PATCH] PCI: move pci_present() into drivers/pci/search.c Jeff Garzik
@ 2003-06-06 5:27 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-06-06 5:27 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux Kernel Mailing List
On Fri, Jun 06, 2003 at 12:50:40AM -0400, Jeff Garzik wrote:
>
> IMO pci_present should go before 2.6.0... it's lived long enough.
Good point, I agree. I'll see about making these changes after I finish
some of these other PCI changes.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-06 5:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200306052322.h55NMmEg019146@hera.kernel.org>
2003-06-06 4:50 ` [PATCH] PCI: move pci_present() into drivers/pci/search.c Jeff Garzik
2003-06-06 5:27 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.