[tools] scons: fix compatibility with python 3, upstream still does not support it...
[openwrt.git] / target / linux / atheros / patches-2.6.37 / 210-reset_button.patch
index 3c91818146cf9001fcdc191915bd8612d08481f2..7bf9d0e14d1ac4a86c0187c8549adbf8a7aed0c3 100644 (file)
@@ -11,7 +11,7 @@
  
 --- /dev/null
 +++ b/arch/mips/ar231x/reset.c
-@@ -0,0 +1,160 @@
+@@ -0,0 +1,161 @@
 +#include <linux/init.h>
 +#include <linux/module.h>
 +#include <linux/timer.h>
@@ -38,7 +38,8 @@
 +static struct timer_list rst_button_timer;
 +static unsigned long seen;
 +
-+extern struct sock *uevent_sock;
++struct sock *uevent_sock = NULL;
++EXPORT_SYMBOL_GPL(uevent_sock);
 +extern u64 uevent_next_seqnum(void);
 +
 +static int no_release_workaround = 1;