mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: greg@kroah.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PCI: move pci_present() into drivers/pci/search.c
Date: Fri, 06 Jun 2003 00:50:40 -0400	[thread overview]
Message-ID: <3EE01DA0.5080808@pobox.com> (raw)
In-Reply-To: <200306052322.h55NMmEg019146@hera.kernel.org>

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




       reply	other threads:[~2003-06-06  4:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200306052322.h55NMmEg019146@hera.kernel.org>
2003-06-06  4:50 ` Jeff Garzik [this message]
2003-06-06  5:27   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EE01DA0.5080808@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®