atheros: remove odd board check during image build
[openwrt/svn-archive/archive.git] / target / linux / atheros / patches-3.18 / 210-reset_button.patch
index 8ba58ed495dd15bca8ca29d1ffe90e64c6baced4..34ef46bc52beda3aeb78da314929260fc10773c5 100644 (file)
  
 --- /dev/null
 +++ b/arch/mips/ath25/reset.c
-@@ -0,0 +1,58 @@
+@@ -0,0 +1,57 @@
 +#include <linux/init.h>
 +#include <linux/slab.h>
 +#include <linux/platform_device.h>
 +#include <linux/gpio_keys.h>
 +#include <linux/input.h>
 +#include <ath25_platform.h>
-+#include <ar231x.h>
 +#include "devices.h"
 +
 +static int __init
@@ -29,7 +28,7 @@
 +      struct gpio_keys_button *p;
 +      int err;
 +
-+      if (ar231x_board.config->reset_config_gpio == 0xffff)
++      if (ath25_board.config->reset_config_gpio == 0xffff)
 +              return -ENODEV;
 +
 +      p = kzalloc(sizeof(*p), GFP_KERNEL);
@@ -40,7 +39,7 @@
 +      p->type = EV_KEY;
 +      p->code = KEY_RESTART;
 +      p->debounce_interval = 60;
-+      p->gpio = ar231x_board.config->reset_config_gpio;
++      p->gpio = ath25_board.config->reset_config_gpio;
 +
 +      memset(&pdata, 0, sizeof(pdata));
 +      pdata.poll_interval = 20;