Re: [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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++;

It should be the other way around.
(sorry my previous message crapped)
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux