atheros: v3.18: cleanup includes
[openwrt/svn-archive/archive.git] / target / linux / atheros / patches-3.18 / 108-ar2315_gpio.patch
index 187e5a6bd5b854a2c792c672b76d008d4ed419e9..dbc22e81b83b754929b1906b6d46bcac7c3ee85d 100644 (file)
  config PCI_AR2315
 --- a/arch/mips/ath25/ar2315.c
 +++ b/arch/mips/ath25/ar2315.c
-@@ -24,6 +24,8 @@
- #include <linux/bitops.h>
- #include <linux/irqdomain.h>
+@@ -21,6 +21,8 @@
+ #include <linux/interrupt.h>
+ #include <linux/platform_device.h>
  #include <linux/reboot.h>
 +#include <linux/delay.h>
 +#include <linux/gpio.h>
  #include <asm/bootinfo.h>
  #include <asm/reboot.h>
  #include <asm/time.h>
-@@ -172,11 +174,42 @@ void __init ar2315_arch_init_irq(void)
+@@ -167,11 +169,42 @@ void __init ar2315_arch_init_irq(void)
        ar2315_misc_irq_domain = domain;
  }
  
@@ -62,7 +62,7 @@
        ath25_add_wmac(0, AR2315_WLAN0_BASE, AR2315_IRQ_WLAN0);
  }
  
-@@ -192,8 +225,8 @@ static void ar2315_restart(char *command
+@@ -187,8 +220,8 @@ static void ar2315_restart(char *command
        /* Cold reset does not work on the AR2315/6, use the GPIO reset bits
         * a workaround. Give it some time to attempt a gpio based hardware
         * reset (atheros reference design workaround) */
 +subsys_initcall(ar2315_gpio_init);
 --- a/arch/mips/ath25/devices.h
 +++ b/arch/mips/ath25/devices.h
-@@ -1,6 +1,11 @@
- #ifndef __ATH25_DEVICES_H
- #define __ATH25_DEVICES_H
+@@ -3,6 +3,11 @@
+ #include <linux/cpu.h>
  
 +#define AR231X_GPIO_IRQ_BASE          0x30
 +