OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 18... | Line 18... | |||
18 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
18 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
19 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
19 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
20 | * |
20 | * |
|
21 | */ |
21 | */ |
|
Line 22... | Line -... | |||
22 | |
- | ||
23 | #include <linux/version.h> |
22 | |
|
24 | #include <linux/platform_device.h> |
23 | #include <linux/platform_device.h> |
|
25 | #include <linux/ar8216_platform.h> |
24 | #include <linux/ar8216_platform.h> |
|
26 | #include <linux/gpio.h> |
25 | #include <linux/gpio.h> |
|
27 | #include <linux/mtd/mtd.h> |
- | ||
28 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
26 | #include <linux/mtd/mtd.h> |
|
29 | #include <linux/mtd/nand.h> |
- | ||
30 | #else |
- | ||
31 | #include <linux/mtd/rawnand.h> |
- | ||
32 | #endif |
27 | #include <linux/mtd/nand.h> |
|
Line 33... | Line 28... | |||
33 | #include <linux/platform/ar934x_nfc.h> |
28 | #include <linux/platform/ar934x_nfc.h> |
|
Line 34... | Line 29... | |||
34 | |
29 | |
|
Line 245... | Line 240... | |||
245 | }; |
240 | }; |
|
Line 246... | Line 241... | |||
246 | |
241 | |
|
247 | static struct mdio_board_info nbg6716_mdio0_info[] = { |
242 | static struct mdio_board_info nbg6716_mdio0_info[] = { |
|
248 | { |
243 | { |
|
249 | .bus_id = "ag71xx-mdio.0", |
244 | .bus_id = "ag71xx-mdio.0", |
|
250 | .mdio_addr = 0, |
245 | .phy_addr = 0, |
|
251 | .platform_data = &nbg6716_ar8327_data, |
246 | .platform_data = &nbg6716_ar8327_data, |
|
252 | }, |
247 | }, |
|
Line 253... | Line 248... | |||
253 | }; |
248 | }; |