[alsa-devel] [PATCH 1/2] acore: deprecated function in wrappers.c

Takashi Iwai tiwai at suse.de
Fri Feb 25 16:41:16 CET 2011


At Fri, 25 Feb 2011 16:35:18 +0100,
Grzegorz Daniluk wrote:
> 
> 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.

Erm... this code is defined _only_ for very old kernels just for
compatible wrapper, so following the rule for new kernels doesn't make
sense.


Takashi

> 
> Signed-off-by: Grzegorz Daniluk <g.daniluk at 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++;
>      }
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list