OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 10... | Line 10... | |||
10 | * This program is free software; you can redistribute it and/or modify it |
10 | * This program is free software; you can redistribute it and/or modify it |
|
11 | * under the terms of the GNU General Public License version 2 as published |
11 | * under the terms of the GNU General Public License version 2 as published |
|
12 | * by the Free Software Foundation. |
12 | * by the Free Software Foundation. |
|
13 | */ |
13 | */ |
|
Line 14... | Line -... | |||
14 | |
- | ||
15 | #include <linux/version.h> |
14 | |
|
16 | #include <linux/pci.h> |
15 | #include <linux/pci.h> |
|
17 | #include <linux/phy.h> |
16 | #include <linux/phy.h> |
|
18 | #include <linux/mtd/mtd.h> |
- | ||
19 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
17 | #include <linux/mtd/mtd.h> |
|
20 | #include <linux/mtd/nand.h> |
- | ||
21 | #else |
- | ||
22 | #include <linux/mtd/rawnand.h> |
- | ||
23 | #endif |
18 | #include <linux/mtd/nand.h> |
|
24 | #include <linux/mtd/partitions.h> |
19 | #include <linux/mtd/partitions.h> |
|
25 | #include <linux/mtd/physmap.h> |
20 | #include <linux/mtd/physmap.h> |
|
26 | #include <linux/platform_device.h> |
21 | #include <linux/platform_device.h> |
|
27 | #include <linux/platform/ar934x_nfc.h> |
22 | #include <linux/platform/ar934x_nfc.h> |
|
Line 118... | Line 113... | |||
118 | }; |
113 | }; |
|
Line 119... | Line 114... | |||
119 | |
114 | |
|
120 | static struct mdio_board_info c60_mdio0_info[] = { |
115 | static struct mdio_board_info c60_mdio0_info[] = { |
|
121 | { |
116 | { |
|
122 | .bus_id = "ag71xx-mdio.0", |
117 | .bus_id = "ag71xx-mdio.0", |
|
123 | .mdio_addr = 0, |
118 | .phy_addr = 0, |
|
124 | .platform_data = &c60_ar8327_data, |
119 | .platform_data = &c60_ar8327_data, |
|
125 | }, |
120 | }, |
|
Line 126... | Line 121... | |||
126 | }; |
121 | }; |