OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | * This program is free software; you can redistribute it and/or modify it |
7 | * This program is free software; you can redistribute it and/or modify it |
|
8 | * under the terms of the GNU General Public License version 2 as published |
8 | * under the terms of the GNU General Public License version 2 as published |
|
9 | * by the Free Software Foundation. |
9 | * by the Free Software Foundation. |
|
10 | */ |
10 | */ |
|
Line 11... | Line -... | |||
11 | |
- | ||
12 | #include <linux/version.h> |
11 | |
|
13 | #include <linux/pci.h> |
12 | #include <linux/pci.h> |
|
14 | #include <linux/phy.h> |
13 | #include <linux/phy.h> |
|
15 | #include <linux/gpio.h> |
14 | #include <linux/gpio.h> |
|
16 | #include <linux/platform_device.h> |
15 | #include <linux/platform_device.h> |
|
17 | #include <linux/ath9k_platform.h> |
16 | #include <linux/ath9k_platform.h> |
|
18 | #include <linux/ar8216_platform.h> |
17 | #include <linux/ar8216_platform.h> |
|
19 | #include <linux/mtd/mtd.h> |
- | ||
20 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
18 | #include <linux/mtd/mtd.h> |
|
21 | #include <linux/mtd/nand.h> |
- | ||
22 | #else |
- | ||
23 | #include <linux/mtd/rawnand.h> |
- | ||
24 | #endif |
19 | #include <linux/mtd/nand.h> |
|
Line 25... | Line 20... | |||
25 | #include <linux/platform/ar934x_nfc.h> |
20 | #include <linux/platform/ar934x_nfc.h> |
|
Line 26... | Line 21... | |||
26 | |
21 | |
|
Line 161... | Line 156... | |||
161 | }; |
156 | }; |
|
Line 162... | Line 157... | |||
162 | |
157 | |
|
163 | static struct mdio_board_info wndr4300_mdio0_info[] = { |
158 | static struct mdio_board_info wndr4300_mdio0_info[] = { |
|
164 | { |
159 | { |
|
165 | .bus_id = "ag71xx-mdio.0", |
160 | .bus_id = "ag71xx-mdio.0", |
|
166 | .mdio_addr = 0, |
161 | .phy_addr = 0, |
|
167 | .platform_data = &wndr4300_ar8327_data, |
162 | .platform_data = &wndr4300_ar8327_data, |
|
168 | }, |
163 | }, |
|
Line 169... | Line 164... | |||
169 | }; |
164 | }; |