All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] drivers/scsi/qla1280.c: pci_get_device instead of
@ 2005-07-05 21:13 Rodrigo Nascimento
  2005-07-05 21:27 ` Greg KH
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Rodrigo Nascimento @ 2005-07-05 21:13 UTC (permalink / raw)
  To: kernel-janitors

This patch changes the pci_find_device to pci_get_device.
Please correct me, whether it's wrong. It is my first patch. :)

Signed-off-by: Rodrigo Nascimento <underscore0x5f@gmail.com>

# diff -urpN /usr/src/linux/drivers/scsi/qla1280.c
/usr/src/linux-kj/drivers/scsi/qla1280.c
--- /usr/src/linux/drivers/scsi/qla1280.c       2005-06-22
16:33:05.000000000 -0300
+++ /usr/src/linux-kj/drivers/scsi/qla1280.c    2005-07-05
17:55:24.000000000 -0300
@@ -1196,7 +1196,7 @@ qla1280_detect(Scsi_Host_Template *templ
 #endif

        /* First Initialize QLA12160 on PCI Bus 1 Dev 2 */
-       while ((pdev = pci_find_device(id->vendor, id->device, pdev))) {
+       while ((pdev = pci_get_device(id->vendor, id->device, pdev))) {
                if (pdev->bus->number = 1 && PCI_SLOT(pdev->devfn) = 2) {
                        if (!qla1280_probe_one(pdev, id))
                                num_hosts++;
@@ -1206,7 +1206,7 @@ qla1280_detect(Scsi_Host_Template *templ
        pdev = NULL;
        /* Try and find each different type of adapter we support */
        for (id = &qla1280_pci_tbl[0]; id->device; id++) {
-               while ((pdev = pci_find_device(id->vendor, id->device, pdev))) {
+               while ((pdev = pci_get_device(id->vendor, id->device, pdev))) {
                        /*
                         * skip QLA12160 already initialized on
                         * PCI Bus 1 Dev 2 since we already initialized

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-06 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-05 21:13 [KJ] [PATCH] drivers/scsi/qla1280.c: pci_get_device instead of Rodrigo Nascimento
2005-07-05 21:27 ` Greg KH
2005-07-05 22:11 ` Alexey Dobriyan
2005-07-05 22:45 ` Domen Puncer
2005-07-05 22:55 ` Greg KH
2005-07-06  8:39 ` Christoph Hellwig
2005-07-06  8:50 ` Domen Puncer
2005-07-06 14:35 ` Rodrigo Nascimento

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.