All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] acore: deprecated function in wrappers.c
@ 2011-02-25 15:35 Grzegorz Daniluk
  2011-02-25 15:41 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Grzegorz Daniluk @ 2011-02-25 15:35 UTC (permalink / raw)
  To: alsa-devel

This patch replace the call of pci_find_device() to pci_get_device(). 
The function pci_find_device() was deprecated for quite a long time, and 
now it is no longer in the kernel.

Signed-off-by: Grzegorz Daniluk <g.daniluk@elproma.com.pl>
---

diff -uprN a/acore/wrappers.c b/acore/wrappers.c
--- a/acore/wrappers.c    2011-01-27 12:09:20.000000000 +0000
+++ b/acore/wrappers.c    2011-02-25 13:41:46.000000000 +0000
@@ -197,7 +197,7 @@ EXPORT_SYMBOL(snd_compat_devfs_mk_cdev);
 int snd_pci_dev_present(const struct pci_device_id *ids)
 {
     while (ids->vendor || ids->subvendor) {
-        if (pci_find_device(ids->vendor, ids->subvendor, NULL))
+        if (pci_get_device(ids->vendor, ids->subvendor, NULL))
             return 1;
         ids++;
     }

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

end of thread, other threads:[~2011-02-28 11:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 15:35 [PATCH 1/2] acore: deprecated function in wrappers.c Grzegorz Daniluk
2011-02-25 15:41 ` Takashi Iwai
2011-02-25 15:51   ` Grzegorz Daniluk
2011-02-25 15:55     ` Takashi Iwai
2011-02-28 11:43       ` Grzegorz Daniluk
2011-02-28 11:49         ` Takashi Iwai

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.