All of lore.kernel.org
 help / color / mirror / Atom feed
From: trem <tremyfr@yahoo.fr>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] via82cxxx_audio.c : replace pci_find_device by
Date: Sun, 14 May 2006 21:42:56 +0000	[thread overview]
Message-ID: <4467A460.3030909@yahoo.fr> (raw)

From: trem <tremyfr@yahoo.fr>

This patch simply change pci_find_device by pci_get_device, because
pci_find_device is deprecated.

Signed-off-by: trem <tremyfr@yahoo.fr>
---
--- /home/trem/mes_noyaux/git/linux-2.6/sound/oss/via82cxxx_audio.c    
2006-03-26 22:31:58.000000000 +0200
+++ linux-2.6-git/sound/oss/via82cxxx_audio.c   2006-05-12
01:01:58.000000000 +0200
@@ -1547,7 +1547,7 @@ static int via_mixer_open (struct inode
 
        DPRINTK ("ENTER\n");
 
-       while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) !NULL) {
+       while ((pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) !NULL) {
                drvr = pci_dev_driver (pdev);
                if (drvr = &via_driver) {
                        assert (pci_get_drvdata (pdev) != NULL);
@@ -3245,7 +3245,7 @@ static int via_dsp_open (struct inode *i
        }
 
        card = NULL;
-       while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) !NULL) {
+       while ((pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) !NULL) {
                drvr = pci_dev_driver (pdev);
                if (drvr = &via_driver) {
                        assert (pci_get_drvdata (pdev) != NULL);


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

             reply	other threads:[~2006-05-14 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-14 21:42 trem [this message]
2006-05-14 21:52 ` [KJ] [PATCH] via82cxxx_audio.c : replace pci_find_device by trem

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=4467A460.3030909@yahoo.fr \
    --to=tremyfr@yahoo.fr \
    --cc=kernel-janitors@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 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.