LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
Sergio Luis <sergio@larces.uece.br>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [SCSI] gdth: update deprecated pci_find_device
Date: Wed, 13 Feb 2008 23:43:33 -0500 [thread overview]
Message-ID: <47B3C6F5.6060809@garzik.org> (raw)
In-Reply-To: <200802140059.m1E0xrID025375@hera.kernel.org>
Linux Kernel Mailing List wrote:
> Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99109301d103fbf0de43fc5a580a406c12a501e0
> Commit: 99109301d103fbf0de43fc5a580a406c12a501e0
> Parent: 61c92814dc324b541391757062ff02fbf3b08086
> Author: Sergio Luis <sergio@larces.uece.br>
> AuthorDate: Tue Feb 12 20:48:03 2008 -0300
> Committer: James Bottomley <James.Bottomley@HansenPartnership.com>
> CommitDate: Wed Feb 13 09:33:10 2008 -0600
>
> [SCSI] gdth: update deprecated pci_find_device
>
> Fix compilation warning in gdth.c, which was using the deprecated
> pci_find_device.
>
> drivers/scsi/gdth.c:645: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:495)
>
> Changing it to use pci_get_device, instead.
>
> Signed-off-by: Sergio Luis <sergio@larces.uece.br>
> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
> ---
> drivers/scsi/Kconfig | 2 +-
> drivers/scsi/gdth.c | 7 +++++--
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index a5f0aaa..a7a0813 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -722,7 +722,7 @@ config SCSI_FD_MCS
>
> config SCSI_GDTH
> tristate "Intel/ICP (former GDT SCSI Disk Array) RAID Controller support"
> - depends on (ISA || EISA || PCI) && SCSI && ISA_DMA_API && PCI_LEGACY
> + depends on (ISA || EISA || PCI) && SCSI && ISA_DMA_API
> ---help---
> Formerly called GDT SCSI Disk Array Controller Support.
>
> diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
> index 7079fef..6d67f5c 100644
> --- a/drivers/scsi/gdth.c
> +++ b/drivers/scsi/gdth.c
> @@ -642,12 +642,15 @@ static void __init gdth_search_dev(gdth_pci_str *pcistr, ushort *cnt,
> *cnt, vendor, device));
>
> pdev = NULL;
> - while ((pdev = pci_find_device(vendor, device, pdev))
> + while ((pdev = pci_get_device(vendor, device, pdev))
> != NULL) {
> if (pci_enable_device(pdev))
> continue;
> - if (*cnt >= MAXHA)
> + if (*cnt >= MAXHA) {
> + pci_dev_put(pdev);
> return;
> + }
> +
Why no pci_dev_put() in the module cleanup path?
Jeff
next parent reply other threads:[~2008-02-14 4:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200802140059.m1E0xrID025375@hera.kernel.org>
2008-02-14 4:43 ` Jeff Garzik [this message]
2008-02-14 14:50 ` James Bottomley
2008-02-14 15:07 ` Jiri Slaby
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=47B3C6F5.6060809@garzik.org \
--to=jeff@garzik.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sergio@larces.uece.br \
--subject='Re: [SCSI] gdth: update deprecated pci_find_device' \
/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
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).