lkml.org 
[lkml]   [2010]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE
From
On Tue, May 25, 2010 at 7:01 PM, Jiri Kosina <jkosina@suse.cz> wrote:
> diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
> index 4c86102..c52ff7c 100644
> --- a/drivers/staging/cxt1e1/hwprobe.c
> +++ b/drivers/staging/cxt1e1/hwprobe.c
> @@ -305,15 +305,9 @@ c4hw_attach_all (void)
>     error_flag = 0;
>     prep_hdw_info ();
>     /*** scan PCI bus for all possible boards */
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
> -    while ((pdev = pci_get_device (PCI_VENDOR_ID_CONEXANT,
> -                                   PCI_DEVICE_ID_CN8474,
> -                                   pdev)))
> -#else
>     while ((pdev = pci_find_device (PCI_VENDOR_ID_CONEXANT,
>                                     PCI_DEVICE_ID_CN8474,
>                                     pdev)))
> -#endif
>     {
>         if (c4_hdw_init (pdev, found))
>             found++;
The other way round ?
\
 
 \ /
  Last update: 2010-05-25 13:11    [W:0.313 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site