projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ralink: add 3.18 support
[openwrt.git]
/
target
/
linux
/
ramips
/
files
/
drivers
/
net
/
ethernet
/
ralink
/
ralink_soc_eth.h
diff --git
a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
index
8c20476
..
a193a56
100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
+++ b/
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
@@
-25,6
+25,12
@@
#include <linux/dma-mapping.h>
#include <linux/phy.h>
#include <linux/ethtool.h>
#include <linux/dma-mapping.h>
#include <linux/phy.h>
#include <linux/ethtool.h>
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
+#define u64_stats_fetch_retry_irq u64_stats_fetch_retry_bh
+#define u64_stats_fetch_begin_irq u64_stats_fetch_begin_bh
+#endif
enum fe_reg {
FE_REG_PDMA_GLO_CFG = 0,
enum fe_reg {
FE_REG_PDMA_GLO_CFG = 0,