#include <linux/slab.h>\r
#include <linux/types.h>\r
#include <linux/wakelock.h>\r
+#include <linux/version.h>\r
\r
#include <mach/iomux.h>\r
#include <mach/gpio.h>\r
static void create_multicast_filter(struct net_device *dev,\r
unsigned long *bitmask)\r
{\r
-#if 1\r
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34))\r
struct netdev_hw_addr *ha;\r
unsigned long crc;\r
char *addrs;\r
}\r
static void vmac_set_multicast_list(struct net_device *dev)\r
{\r
-#if 1\r
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34))\r
struct vmac_priv *ap = netdev_priv(dev);\r
unsigned long flags, bitmask[2];\r
int promisc, reg;\r