OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 8... Line 8...
8 * by the Free Software Foundation. 8 * by the Free Software Foundation.
9 */ 9 */
Line 10... Line 10...
10   10  
Line 11... Line -...
11 #define pr_fmt(fmt) "rb91x: " fmt -  
12   11 #define pr_fmt(fmt) "rb91x: " fmt
13 #include <linux/version.h> 12  
14 #include <linux/phy.h> 13 #include <linux/phy.h>
15 #include <linux/delay.h> 14 #include <linux/delay.h>
16 #include <linux/platform_device.h> 15 #include <linux/platform_device.h>
17 #include <linux/ath9k_platform.h> -  
18 #include <linux/mtd/mtd.h> 16 #include <linux/ath9k_platform.h>
19 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) -  
20 #include <linux/mtd/nand.h> -  
21 #else -  
22 #include <linux/mtd/rawnand.h> 17 #include <linux/mtd/mtd.h>
23 #endif 18 #include <linux/mtd/nand.h>
24 #include <linux/mtd/partitions.h> 19 #include <linux/mtd/partitions.h>
25 #include <linux/spi/spi.h> 20 #include <linux/spi/spi.h>
26 #include <linux/spi/74x164.h> 21 #include <linux/spi/74x164.h>
Line 217... Line 212...
217 }, 212 },
218 { 213 {
219 .name = "rb:green:power", 214 .name = "rb:green:power",
220 .gpio = RB91X_GPIO_LED_POWER, 215 .gpio = RB91X_GPIO_LED_POWER,
221 .active_low = 0, 216 .active_low = 0,
222 .default_state = LEDS_GPIO_DEFSTATE_ON, 217 .default_state = LEDS_GPIO_DEFSTATE_KEEP,
223 }, 218 },
224 }; 219 };
Line 225... Line 220...
225   220  
226 static struct at803x_platform_data rb91x_at803x_data = { 221 static struct at803x_platform_data rb91x_at803x_data = {
Line 230... Line 225...
230 }; 225 };
Line 231... Line 226...
231   226  
232 static struct mdio_board_info rb91x_mdio0_info[] = { 227 static struct mdio_board_info rb91x_mdio0_info[] = {
233 { 228 {
234 .bus_id = "ag71xx-mdio.0", 229 .bus_id = "ag71xx-mdio.0",
235 .mdio_addr = 0, 230 .phy_addr = 0,
236 .platform_data = &rb91x_at803x_data, 231 .platform_data = &rb91x_at803x_data,
237 }, 232 },
Line 238... Line 233...
238 }; 233 };