OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 10... Line 10...
10 * by the Free Software Foundation. 10 * by the Free Software Foundation.
11 */ 11 */
Line 12... Line 12...
12   12  
Line 13... Line -...
13 #define pr_fmt(fmt) "sxtlite: " fmt -  
14   13 #define pr_fmt(fmt) "sxtlite: " fmt
15 #include <linux/version.h> 14  
16 #include <linux/phy.h> 15 #include <linux/phy.h>
17 #include <linux/delay.h> 16 #include <linux/delay.h>
18 #include <linux/platform_device.h> 17 #include <linux/platform_device.h>
19 #include <linux/ath9k_platform.h> -  
20 #include <linux/mtd/mtd.h> 18 #include <linux/ath9k_platform.h>
21 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) -  
22 #include <linux/mtd/nand.h> -  
23 #else -  
24 #include <linux/mtd/rawnand.h> 19 #include <linux/mtd/mtd.h>
25 #endif 20 #include <linux/mtd/nand.h>
26 #include <linux/mtd/partitions.h> 21 #include <linux/mtd/partitions.h>
27 #include <linux/spi/spi.h> 22 #include <linux/spi/spi.h>
28 #include <linux/spi/flash.h> 23 #include <linux/spi/flash.h>
Line 113... Line 108...
113 .active_low = 1, 108 .active_low = 1,
114 }, 109 },
115 { 110 {
116 .name = "rb:green:power", 111 .name = "rb:green:power",
117 .gpio = SXTLITE_GPIO_LED_POWER, 112 .gpio = SXTLITE_GPIO_LED_POWER,
118 .default_state = LEDS_GPIO_DEFSTATE_ON, 113 .default_state = LEDS_GPIO_DEFSTATE_KEEP,
119 }, 114 },
120 }; 115 };
Line 121... Line 116...
121   116  
122 static struct gpio_keys_button rbsxtlite_gpio_keys[] __initdata = { 117 static struct gpio_keys_button rbsxtlite_gpio_keys[] __initdata = {