* [patch 2/6] Replace pci_find_device with pci_dev_present
@ 2005-03-06 10:42 domen
0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-03-06 10:42 UTC (permalink / raw)
To: B.Zolnierkiewicz; +Cc: linux-ide, domen, hannal, janitor
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>
---
kj-domen/drivers/ide/pci/alim15x3.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
diff -puN drivers/ide/pci/alim15x3.c~pci_dev_present-drivers_ide_pci_alim15x3 drivers/ide/pci/alim15x3.c
--- kj/drivers/ide/pci/alim15x3.c~pci_dev_present-drivers_ide_pci_alim15x3 2005-03-05 16:09:42.000000000 +0100
+++ kj-domen/drivers/ide/pci/alim15x3.c 2005-03-05 16:09:42.000000000 +0100
@@ -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)
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* [patch 2/6] Replace pci_find_device with pci_dev_present
@ 2005-06-20 21:52 domen
0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-06-20 21:52 UTC (permalink / raw)
To: B.Zolnierkiewicz; +Cc: linux-ide, Hanna Linder, Maximilian Attems, domen
[-- 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)
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-20 21:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 21:52 [patch 2/6] Replace pci_find_device with pci_dev_present domen
-- strict thread matches above, loose matches on Subject: below --
2005-03-06 10:42 domen
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).