OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 6... Line 6...
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published 7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation. 8 * by the Free Software Foundation.
9 */ 9 */
Line 10... Line -...
10   -  
11 #include <linux/version.h> 10  
12 #include <linux/phy.h> 11 #include <linux/phy.h>
13 #include <linux/delay.h> 12 #include <linux/delay.h>
14 #include <linux/platform_device.h> 13 #include <linux/platform_device.h>
15 #include <linux/ath9k_platform.h> 14 #include <linux/ath9k_platform.h>
16 #include <linux/mtd/mtd.h> -  
17 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) 15 #include <linux/mtd/mtd.h>
18 #include <linux/mtd/nand.h> -  
19 #else -  
20 #include <linux/mtd/rawnand.h> -  
21 #endif 16 #include <linux/mtd/nand.h>
22 #include <linux/mtd/partitions.h> 17 #include <linux/mtd/partitions.h>
23 #include <linux/spi/spi.h> 18 #include <linux/spi/spi.h>
24 #include <linux/spi/flash.h> 19 #include <linux/spi/flash.h>
25 #include <linux/routerboot.h> 20 #include <linux/routerboot.h>
Line 111... Line 106...
111 }; 106 };
Line 112... Line 107...
112   107  
113 static struct mdio_board_info rb922gs_mdio0_info[] = { 108 static struct mdio_board_info rb922gs_mdio0_info[] = {
114 { 109 {
115 .bus_id = "ag71xx-mdio.0", 110 .bus_id = "ag71xx-mdio.0",
116 .mdio_addr = RB922_PHY_ADDR, 111 .phy_addr = RB922_PHY_ADDR,
117 .platform_data = &rb922gs_at803x_data, 112 .platform_data = &rb922gs_at803x_data,
118 }, 113 },
Line 119... Line 114...
119 }; 114 };