--- src/sm_drv.h | 3 ++- src/sm_drv_spi_io.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) --- cx3110x-1.1.orig/src/sm_drv.h +++ cx3110x-1.1/src/sm_drv.h @@ -19,10 +19,11 @@ */ #include #include #include #include +#include #include #include "sm_drv_spi.h" #include "smoid2.h" @@ -187,11 +188,11 @@ struct net_local { unsigned int sm_initialization; uint32_t device_state; /* Powersave/Active */ uint32_t link_state; /* Assciated or not */ -#ifdef CONFIG_MACH_NOKIA_N800 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17)) struct work_struct wq; /* Our bottom halve (BH) handler */ #endif /* CONFIG_MACH_NOKIA_N800 */ #ifdef CONFIG_MACH_NOKIA770 struct tasklet_struct tasklet; /* Our bottom halve (BH) handler */ --- cx3110x-1.1.orig/src/sm_drv_spi_io.c +++ cx3110x-1.1/src/sm_drv_spi_io.c @@ -13,13 +13,14 @@ * */ #include #include #include -#ifdef CONFIG_MACH_NOKIA_N800 +#include +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17)) #include -#endif /* CONFIG_MACH_NOKIA_N800 */ +#endif #include #include #include #include