projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71cf734
)
mt5931: solve rk3188 and rk3168 compatible problem
author
hwg
<hwg@rock-chips.com>
Fri, 12 Jul 2013 03:02:18 +0000
(11:02 +0800)
committer
hwg
<hwg@rock-chips.com>
Fri, 12 Jul 2013 03:02:18 +0000
(11:02 +0800)
drivers/net/wireless/mt5931/os/linux/gl_init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mt5931/os/linux/gl_init.c
b/drivers/net/wireless/mt5931/os/linux/gl_init.c
index 13d90ecaa4d07b12cdb356756883e0909376b0c1..d7a817fbae1350b79164eb5978f418f8b22862c1 100755
(executable)
--- a/
drivers/net/wireless/mt5931/os/linux/gl_init.c
+++ b/
drivers/net/wireless/mt5931/os/linux/gl_init.c
@@
-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);
/*----------------------------------------------------------------------------*/
/*!