mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Greg KH <gregkh@suse.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-pci@atrey.karlin.mff.cuni.cz, linux-ide@vger.kernel.org,
	B.Zolnierkiewicz@elka.pw.edu.pl,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Matthew Wilcox <matthew@wil.cx>,
	Grant Grundler <grundler@parisc-linux.org>
Subject: Re: [PATCH] include: pci_find_device remove (include/asm-i386/ide.h)
Date: Fri, 7 Oct 2005 00:24:51 +0200	[thread overview]
Message-ID: <4af2d03a0510061524m4611d75bn5b1ce6a4e3ebddf1@mail.gmail.com> (raw)
In-Reply-To: <4323482E.2090409@pobox.com>

On 9/10/05, Jeff Garzik <jgarzik@pobox.com> wrote:
> Jiri Slaby wrote:
> > diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h
> > --- a/include/asm-i386/ide.h
> > +++ b/include/asm-i386/ide.h
> > @@ -41,7 +41,12 @@ static __inline__ int ide_default_irq(un
> >
> >  static __inline__ unsigned long ide_default_io_base(int index)
> >  {
> > -     if (pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) {
> > +     struct pci_dev *pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
> > +     unsigned int a = !pdev;
> > +
> > +     pci_dev_put(pdev);
>
>
> Looks like we need to resurrect pci_present() from the ancient past.
So, what was the result of this debate? I can't see any solution in
that thread, not even in 2.6.14-rc2-mm2.

thanks,
--
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
B67499670407CE62ACC8 22A032CC55C339D47A7E

      parent reply	other threads:[~2005-10-06 22:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-10 20:32 Jiri Slaby
2005-09-10 20:55 ` Jeff Garzik
2005-09-10 21:19   ` Greg KH
2005-09-10 21:24     ` Jiri Slaby
2005-09-10 21:39     ` Jeff Garzik
2005-09-10 22:33       ` Matthew Wilcox
2005-09-10 23:35         ` Jeff Garzik
2005-09-11  0:34           ` Grant Grundler
2005-09-11  0:47             ` Jeff Garzik
2005-09-11  1:06             ` Alan Cox
2005-09-11  1:24               ` Grant Grundler
2005-09-11  1:30               ` Matthew Wilcox
2005-09-12 10:17                 ` Alan Cox
2005-09-12 11:21                   ` Matthew Wilcox
2005-09-12 12:35                     ` Alan Cox
2005-09-11  0:06     ` Alan Cox
2005-10-06 22:24   ` Jiri Slaby [this message]

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=4af2d03a0510061524m4611d75bn5b1ce6a4e3ebddf1@mail.gmail.com \
    --to=jirislaby@gmail.com \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=gregkh@suse.de \
    --cc=grundler@parisc-linux.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    --cc=matthew@wil.cx \
    /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®