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

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

 



Jiri Kosina <jkosina@xxxxxxx> writes:

> diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c
> index 134e756..ace28c7 100644
> --- a/drivers/staging/cxt1e1/linux.c
> +++ b/drivers/staging/cxt1e1/linux.c

> @@ -1341,9 +1226,6 @@ module_exit (c4_mod_remove);
>  
>  #ifndef SBE_INCLUDE_SYMBOLS
>  #ifndef CONFIG_SBE_WANC24_NCOMM
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> -EXPORT_NO_SYMBOLS;
> -#endif
>  #endif
>  #endif

This is now empty.

> diff --git a/drivers/staging/cxt1e1/sbecom_inline_linux.h b/drivers/staging/cxt1e1/sbecom_inline_linux.h
> index c65172d..5a72cb5 100644
> --- a/drivers/staging/cxt1e1/sbecom_inline_linux.h
> +++ b/drivers/staging/cxt1e1/sbecom_inline_linux.h

> @@ -60,12 +57,8 @@
>  
>  #ifdef MODULE
>  #ifdef MODVERSIONS
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> -#include <linux/modversions.h>
> -#else
>  #include <config/modversions.h>
>  #endif
> -#endif

This should be removed altogether.

> diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211.h b/drivers/staging/rtl8192e/ieee80211/ieee80211.h
> index 50728f6..02594fd 100644
> --- a/drivers/staging/rtl8192e/ieee80211/ieee80211.h
> +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211.h

> @@ -2329,36 +2246,20 @@ struct ieee80211_device {
>  
>  	/* used if IEEE_SOFTMAC_BEACONS is set */
>  	struct timer_list beacon_timer;
> -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
>          struct work_struct associate_complete_wq;
>          struct work_struct associate_procedure_wq;
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
>          struct delayed_work softmac_scan_wq;
>          struct delayed_work associate_retry_wq;
>  	 struct delayed_work start_ibss_wq;
>  	 struct delayed_work hw_wakeup_wq;
>  	struct delayed_work hw_sleep_wq;
> -#else
>          struct work_struct softmac_scan_wq;
>          struct work_struct associate_retry_wq;
>  	struct work_struct start_ibss_wq;
>  	struct work_struct hw_wakeup_wq;
>  	struct work_struct hw_sleep_wq;
> -#endif

The #else branch needs to be fully removed.

> diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
> index 46b6e8c..a60b001 100644
> --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
> +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c

> @@ -704,16 +658,10 @@ void ieee80211_rtl_start_scan(struct ieee80211_device *ieee)
>  	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN){
>  		if (ieee->scanning == 0){
>  			ieee->scanning = 1;
> -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
>  			queue_delayed_work(ieee->wq, &ieee->softmac_scan_wq, 0);
> -#else
>  
>  			queue_work(ieee->wq, &ieee->softmac_scan_wq);
> -#endif
> -#else
>  			ieee80211_softmac_scan(ieee);
> -#endif

Likewise.

Andreas.

-- 
Andreas Schwab, schwab@xxxxxxxxxx
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."
_______________________________________________
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