projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a workaround for self-killing init scripts on restart (#1023)
[openwrt.git]
/
target
/
linux
/
aruba-2.6
/
patches
/
010-ar2313_enet.patch
diff --git
a/target/linux/aruba-2.6/patches/010-ar2313_enet.patch
b/target/linux/aruba-2.6/patches/010-ar2313_enet.patch
index
b5ef4d3
..
0488bd4
100644
(file)
--- a/
target/linux/aruba-2.6/patches/010-ar2313_enet.patch
+++ b/
target/linux/aruba-2.6/patches/010-ar2313_enet.patch
@@
-21,7
+21,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.c linux-2.6.17-owrt/drivers/net
+ * modified for the AR2313.
+ */
+
+ * modified for the AR2313.
+ */
+
-+#include <linux/
config
.h>
++#include <linux/
autoconf
.h>
+#include <linux/module.h>
+#include <linux/version.h>
+#include <linux/types.h>
+#include <linux/module.h>
+#include <linux/version.h>
+#include <linux/types.h>
@@
-89,7
+89,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.c linux-2.6.17-owrt/drivers/net
+static char ethaddr[18] = "00:00:00:00:00:00";
+static char ifname[5] = "bond";
+
+static char ethaddr[18] = "00:00:00:00:00:00";
+static char ifname[5] = "bond";
+
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,
6,17
)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,
5,52
)
+module_param_string(ethaddr, ethaddr, 18, 0);
+module_param_string(ifname, ifname, 5, 0);
+#else
+module_param_string(ethaddr, ethaddr, 18, 0);
+module_param_string(ifname, ifname, 5, 0);
+#else
@@
-1188,7
+1188,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.c linux-2.6.17-owrt/drivers/net
+ tasklet_hi_schedule(&sp->rx_tasklet);
+}
+
+ tasklet_hi_schedule(&sp->rx_tasklet);
+}
+
-+static irqreturn_t ar2313_interrupt(int irq, void *dev_id
, struct pt_regs *ptregs
)
++static irqreturn_t ar2313_interrupt(int irq, void *dev_id)
+{
+ struct net_device *dev = (struct net_device *)dev_id;
+ struct ar2313_private *sp = dev->priv;
+{
+ struct net_device *dev = (struct net_device *)dev_id;
+ struct ar2313_private *sp = dev->priv;
@@
-1228,7
+1228,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.c linux-2.6.17-owrt/drivers/net
+ ar2313_restart(dev);
+ }
+ }
+ ar2313_restart(dev);
+ }
+ }
-+ return IRQ_
RETVAL(0)
;
++ return IRQ_
HANDLED
;
+}
+
+
+}
+
+
@@
-1658,7
+1658,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.h linux-2.6.17-owrt/drivers/net
+#ifndef _AR2313_H_
+#define _AR2313_H_
+
+#ifndef _AR2313_H_
+#define _AR2313_H_
+
-+#include <linux/
config
.h>
++#include <linux/
autoconf
.h>
+#include <asm/bootinfo.h>
+#include "platform.h"
+
+#include <asm/bootinfo.h>
+#include "platform.h"
+
@@
-1834,7
+1834,7
@@
diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.h linux-2.6.17-owrt/drivers/net
+static void ar2313_dump_regs(struct net_device *dev);
+#endif
+static void ar2313_load_rx_ring(struct net_device *dev, int bufs);
+static void ar2313_dump_regs(struct net_device *dev);
+#endif
+static void ar2313_load_rx_ring(struct net_device *dev, int bufs);
-+static irqreturn_t ar2313_interrupt(int irq, void *dev_id
, struct pt_regs *regs
);
++static irqreturn_t ar2313_interrupt(int irq, void *dev_id);
+static int ar2313_open(struct net_device *dev);
+static int ar2313_start_xmit(struct sk_buff *skb, struct net_device *dev);
+static int ar2313_close(struct net_device *dev);
+static int ar2313_open(struct net_device *dev);
+static int ar2313_start_xmit(struct sk_buff *skb, struct net_device *dev);
+static int ar2313_close(struct net_device *dev);
This page took
0.022924 seconds
and
4
git commands to generate.