All pastes #979499 Raw Edit

Unnamed

public text v1 · immutable
#979499 ·published 2008-04-10 12:26 UTC
rendered paste body
---
 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 <linux/skbuff.h>
 #include <linux/netdevice.h>
 #include <linux/wireless.h>
 #include <linux/delay.h>
+#include <linux/version.h>
 #include <asm/io.h>

 #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 <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
-#ifdef CONFIG_MACH_NOKIA_N800
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
 #include <linux/irq.h>
-#endif /* CONFIG_MACH_NOKIA_N800 */
+#endif
 #include <linux/dma-mapping.h>
 #include <linux/clk.h>
 #include <linux/spi/spi.h>

 #include <asm/delay.h>