summaryrefslogtreecommitdiff
path: root/package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2010-04-01 12:05:27 +0000
committerImre Kaloz <kaloz@openwrt.org>2010-04-01 12:05:27 +0000
commitd3b9b93dd3df29460b21b1b4daa556f81f5780ba (patch)
treecc73f5514469c1e04792265df26b16380e00a843 /package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch
parent6e383d7ef0894885429728affbf94c7d5a2bbe46 (diff)
downloadmtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.zip
mtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.gz
mtk-20170518-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.bz2
add a subtarget and drivers for the Intel Tolapai SoC
SVN-Revision: 20648
Diffstat (limited to 'package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch')
-rw-r--r--package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch b/package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch
new file mode 100644
index 0000000..ca8c1bb
--- /dev/null
+++ b/package/ep80579-drivers/patches/700-iegbe_kcompat_2.6.30.patch
@@ -0,0 +1,31 @@
+--- a/Embedded/src/GbE/kcompat.h
++++ b/Embedded/src/GbE/kcompat.h
+@@ -46,12 +46,6 @@ GPL LICENSE SUMMARY
+ #include <linux/sched.h>
+ #include <asm/io.h>
+
+-#ifndef IRQ_HANDLED
+-#define irqreturn_t void
+-#define IRQ_HANDLED
+-#define IRQ_NONE
+-#endif
+-
+ #ifndef SET_NETDEV_DEV
+ #define SET_NETDEV_DEV(net, pdev)
+ #endif
+@@ -748,6 +742,15 @@ extern void dump_stack(void);
+
+ #endif /* 2.4.24 */
+
++/*****************************************************************************/
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) )
++#ifndef IRQ_HANDLED
++#define irqreturn_t void
++#define IRQ_HANDLED
++#define IRQ_NONE
++#endif
++#endif /* < 2.6.30 */
++
+ #endif /* _KCOMPAT_H_ */
+
+