mt5931: solve rk3188 and rk3168 compatible problem
authorhwg <hwg@rock-chips.com>
Fri, 12 Jul 2013 03:02:18 +0000 (11:02 +0800)
committerhwg <hwg@rock-chips.com>
Fri, 12 Jul 2013 03:02:18 +0000 (11:02 +0800)
drivers/net/wireless/mt5931/os/linux/gl_init.c

index 13d90ecaa4d07b12cdb356756883e0909376b0c1..d7a817fbae1350b79164eb5978f418f8b22862c1 100755 (executable)
@@ -1980,6 +1980,15 @@ wlanInit(
     return 0; /* success */
 } /* end of wlanInit() */
 
+void mtk_init_delayed_work(struct delayed_work *work, void *func) 
+{
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 12)
+    INIT_DELAYED_WORK(work, func);
+#else
+    INIT_DELAYED_WORK(work, func, NULL);
+#endif
+}
+EXPORT_SYMBOL(mtk_init_delayed_work);
 
 /*----------------------------------------------------------------------------*/
 /*!