From: domen@coderock.org
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: linux-ide@vger.kernel.org, Hanna Linder <hannal@us.ibm.com>,
Maximilian Attems <janitor@sternwelten.at>,
domen@coderock.org
Subject: [patch 2/6] Replace pci_find_device with pci_dev_present
Date: Mon, 20 Jun 2005 23:52:18 +0200 [thread overview]
Message-ID: <20050620215217.508725000@nd47.coderock.org> (raw)
[-- Attachment #1: pci_dev_present-drivers_ide_pci_alim15x3.patch --]
[-- Type: text/plain, Size: 1183 bytes --]
From: Hanna Linder <hannal@us.ibm.com>
The dev returned from pci_find_device was not used so it can be replaced
with pci_dev_present. Has been compile tested.
Hanna Linder
IBM Linux Technology Center
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
alim15x3.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: quilt/drivers/ide/pci/alim15x3.c
===================================================================
--- quilt.orig/drivers/ide/pci/alim15x3.c
+++ quilt/drivers/ide/pci/alim15x3.c
@@ -876,9 +876,14 @@ static ide_pci_device_t ali15x3_chipset
static int __devinit alim15x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
+ static struct pci_device_id ati_rs100[] = {
+ { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100) },
+ { },
+ };
+
ide_pci_device_t *d = &ali15x3_chipset;
- if(pci_find_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100, NULL))
+ if(pci_dev_present(ati_rs100))
printk(KERN_ERR "Warning: ATI Radeon IGP Northbridge is not yet fully tested.\n");
#if defined(CONFIG_SPARC64)
--
next reply other threads:[~2005-06-20 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 21:52 domen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-06 10:42 [patch 2/6] Replace pci_find_device with pci_dev_present domen
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=20050620215217.508725000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=hannal@us.ibm.com \
--cc=janitor@sternwelten.at \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).